Like here and here, i run this code:
with open(fin,'r') as inFile, open(fout,'w') as outFile:
for line in inFile:
line = line.replace('."</documents', '"').replace('. ', ' ')
print(' '.join([word for word in line.lower().split() if len(word) >=3 and word not in stopwords.words('english')]), file = outFile)
and i have the following error:
**UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
print(' '.join([word for word in line.lower().split() if len(word) >=3 and word not in stopwords.words('english')]), file = outFile)**
How can i solve this?