Skip to content

Commit

Permalink
Add main for tokenizer
Browse files Browse the repository at this point in the history
  • Loading branch information
am9zZWY committed Jul 17, 2024
1 parent 80dcdf2 commit ccd9fa9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions engine/tokenizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,9 @@ async def process(self, data, link):
"I'm 6'2\" tall and I weigh 180 lbs. I'm 25 years old.",
]

for sentence in test_sentences:
print(f"Original: {sentence}")
print(f"Tokenized: {process_text(sentence)}")
print()
if __name__ == "__main__":

for sentence in test_sentences:
print(f"Original: {sentence}")
print(f"Tokenized: {process_text(sentence)}")
print()

0 comments on commit ccd9fa9

Please sign in to comment.