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
I'm trying out this app and quickly get this TypeError:
Traceback (most recent call last): File "C:\Users\Vera\Downloads\keyword\keywords_tfidf.py", line 90, in <module> corpus, dictionary = cp.MyCorpus(doc_folder, stop_folder, str(doc_length)).load() File "C:\Users\Vera\Downloads\keyword\corpus.py", line 99, in __init__ self.doc_list = get_documents(doc_dir, doc_length) File "C:\Users\Vera\Downloads\keyword\corpus.py", line 31, in get_documents print('Processing documents ...') File "C:\Users\Vera\AppData\Local\Programs\Python\Python310\lib\codecs.py", line 378, in write self.stream.write(data) TypeError: write() argument must be str, not bytes
I put a collection of txt-files in the "documents" folder but I don't have stopwords. How do stopwords need to be formatted?
I'm using python 3.10.0 on a Windows PC.
The text was updated successfully, but these errors were encountered:
I'm trying out this app and quickly get this TypeError:
Traceback (most recent call last): File "C:\Users\Vera\Downloads\keyword\keywords_tfidf.py", line 90, in <module> corpus, dictionary = cp.MyCorpus(doc_folder, stop_folder, str(doc_length)).load() File "C:\Users\Vera\Downloads\keyword\corpus.py", line 99, in __init__ self.doc_list = get_documents(doc_dir, doc_length) File "C:\Users\Vera\Downloads\keyword\corpus.py", line 31, in get_documents print('Processing documents ...') File "C:\Users\Vera\AppData\Local\Programs\Python\Python310\lib\codecs.py", line 378, in write self.stream.write(data) TypeError: write() argument must be str, not bytes
I put a collection of txt-files in the "documents" folder but I don't have stopwords. How do stopwords need to be formatted?
I'm using python 3.10.0 on a Windows PC.
The text was updated successfully, but these errors were encountered: