Skip to content
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

Is this source support Chinese?? #33

Open
DongShanHu opened this issue Aug 13, 2018 · 0 comments
Open

Is this source support Chinese?? #33

DongShanHu opened this issue Aug 13, 2018 · 0 comments

Comments

@DongShanHu
Copy link

I have some problem on making the model with my data. While I finish the Preparations
I use my data and the subname is .txt, but my data is chinese word and can not make the output of corpus.db

could u give me some tips ? thanks
this is my error

ImportFromFile...........
Traceback (most recent call last):
File "bin/import_corpus.py", line 30, in
main()
File "bin/import_corpus.py", line 27, in main
ImportCorpus(args.corpus, args.database)
File "bin/import_corpus.py", line 17, in ImportCorpus
corpus_db.ImportFromFile(corpus_filename_or_folder)
File "/home/kyle/下載/termite_data_server/bin/db/Corpus_DB.py", line 175, in ImportFromFile
self.db.corpus.bulk_insert(ReadFile())
File "web2py/gluon/dal.py", line 9222, in bulk_insert
ret = self._db._adapter.bulk_insert(self,items)
File "web2py/gluon/dal.py", line 1375, in bulk_insert
return [self.insert(table,item) for item in items]
File "web2py/gluon/dal.py", line 1360, in insert
raise e
ValueError: the query contains a null character

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant