We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
I ran the following commands to train the parser:
bash ./scripts/base_model.sh small base_model bash ./scripts/parser.sh base_model parser
When I used the following commands to load the trained parser, the sentence segmenter does not work:
import spacy nlp = spacy.load('parser/best') x = nlp('Hello. Hello.') print(len(list(x.sents)) # Output: 1, Expected: 2
However, when I followed the code and added the segmenter to the pipeline, the sentense segmenter still does not work:
import spacy from scispacy.custom_sentence_segmenter import combined_rule_sentence_segmenter nlp = spacy.load('parser/best') nlp.add_pipe(combined_rule_sentence_segmenter, first=True) x = nlp('Hello. Hello.') print(len(list(x.sents)) # Output: 1, Expected: 2
What should I do to add the sentence segmenter into pipeline?
Thanks!
The text was updated successfully, but these errors were encountered:
Does it not work at all, even for more normal sentences?
Sorry, something went wrong.
Sorry, it is my fault. The issue was resolved after correctly setting the spacy. :)
No problem, glad you fixed it!
No branches or pull requests
Hello,
I ran the following commands to train the parser:
When I used the following commands to load the trained parser, the sentence segmenter does not work:
However, when I followed the code and added the segmenter to the pipeline, the sentense segmenter still does not work:
What should I do to add the sentence segmenter into pipeline?
Thanks!
The text was updated successfully, but these errors were encountered: