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

OSError: Not found: unknown field name "mining_sentence_size" in TrainerSpec. #1

Open
nbutyrate opened this issue Feb 18, 2020 · 2 comments

Comments

@nbutyrate
Copy link

Hi I was trying to run your test

here is the error

sentencepiece_trainer.cc(116) LOG(INFO) Running command: --input=tmp/tmp_txt --model_prefix=results_dental/intermediate_files/npe_segmentatation/periodontal_unique_50000_v_5000_s --add_dummy_prefix=0 --max_sentencepiece_length=512 --model_type=bpe --mining_sentence_size=5000000 --input_sentence_size=10000000 --vocab_size=50000
Traceback (most recent call last):
File "ditaxa.py", line 160, in
err = checkArgs(sys.argv)
File "ditaxa.py", line 131, in checkArgs
Pipeline.train_npe()
File "/Users/sangwan/Desktop/Softwares/DiTaxa-master/main/DiTaxa.py", line 87, in train_npe
backend='Sentencepiece',num_p=self.num_p)
File "/Users/sangwan/Desktop/Softwares/DiTaxa-master/make_representations/npe_segmentation_train.py", line 63, in generate
'--input=tmp/tmp_txt --model_prefix=' + output_dir + ' --add_dummy_prefix=0 --max_sentencepiece_length=512 --model_type=bpe --mining_sentence_size=5000000 --input_sentence_size=10000000 --vocab_size=50000')
OSError: Not found: unknown field name "mining_sentence_size" in TrainerSpec.

@nbutyrate
Copy link
Author

I have solved this issue, please feel free to close this

@jzl0166
Copy link

jzl0166 commented Oct 8, 2020

How could you solve this problem?

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

2 participants