-
Notifications
You must be signed in to change notification settings - Fork 14
Biological NER predictor pack() missing context parameter #85
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And remember to add test cases
from forte.processors.base.batch_processor import RequestPackingProcessor | ||
from ft.onto.base_ontology import EntityMention, Subword | ||
from ft.onto.base_ontology import EntityMention, Subword, Token, Sentence |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be careful about import orders, this is part of python convention
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mean the order of modules after from ft.onto.base_ontology import
should follow alphabetic order?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…forte-wrappers into bio_ner_predictor_fix
This PR fixes asyml/forte#622.
Description of changes
Add
context
parameter to the function to adapt API interface changes even thoughcontext
is not needed.Possible influences of this PR.
Indexer can run successfully in the clinical pipeline example
https://github.com/asyml/forte/tree/master/examples/clinical_pipeline
Test Conducted
self.num_packs
.