-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
type error #5
Comments
I think the error is related with character encoding difference between python2 and 3. Maybe using python2 could fix the problem? |
I am trying to run the word2vecf.py file from simplified file but got following error. |
I am sorry that I didn't try the codes in simplified file thoroughly. A simple solution is to add the |
I'm trying to create uni_bi.sh with Chinese/utf8 word seg file, however always got following error.
any idea ?
==========
Traceback (most recent call last):
File "ngram2vec/pairs2counts.py", line 109, in
main()
File "ngram2vec/pairs2counts.py", line 88, in main
counts_file.write(str(old[0]) + " " + str(w) + " " + str(old[1][w]) + "\n")
TypeError: write() argument 1 must be unicode, not str
The text was updated successfully, but these errors were encountered: