You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importtkseemastkimportcsv# initialize the tokenizertokenizer=tk.WordTokenizer()
tokenizer.train('data.txt')
# open the csv file and read the text datawithopen('../uploads/tweets-ar.csv', mode='r', encoding='utf-8') ascsv_file:
csv_reader=csv.reader(csv_file)
forrowincsv_reader:
text=row[0]
# tokenize the text using tkseemtokens=tokenizer.tokenize(text)
print(tokens)
i got this error
File "pathtomycode\tokenize.py", line 5, in<module>
tokenizer = tk.WordTokenizer()
AttributeError: partially initialized module 'tkseem' has no attribute 'WordTokenizer' (most likely due to a circular import)
The text was updated successfully, but these errors were encountered:
when I tried to launch the code
i got this error
The text was updated successfully, but these errors were encountered: