error: cannot open input model file: resources/postagger.model
Opened this issue · 0 comments
DsDastgheib commented
Hi,
When I use QuestionGeneration() module as the following code:
from parsi_io.modules.question_generator import QuestionGeneration
extractor = QuestionGeneration()
sentence = " دورتی وست بین سالهای ۱۹۰۸ تا ۱۹۱۶ میلادی فعالیت میکرد."
q = extractor.run(sentence)
print(q)
I get this error:
error: cannot open input model file: resources/postagger.model
<No such file or directory>
The weird thing is if I change the sentence, for example when I have
sentence = "لیوبلیانا پایتخت کشور اسلوونی و با حدود ۲۷۰ هزار نفر جمعیت بزرگترین شهر این کشور است."
I do not get the above-mentioned error!!! and I get the expected output.
Another weird thing is that using try
and except
I cannot skip this error for the problematic sentence.