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

SentiNEREL collection serialization -- create_train_pipeline and create_test_pipeline are the same #505

Closed
Tracked by #506 ...
nicolay-r opened this issue Jul 26, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@nicolay-r
Copy link
Owner

def create_train_pipeline(text_parser, doc_ops, annotators, text_opinion_filters):
""" Train pipeline is based on the predefined annotations and
automatic annotations of other pairs with a NoLabel.
"""
return text_opinion_extraction_pipeline(
get_doc_by_id_func=doc_ops.by_id,
text_parser=text_parser,
annotators=annotators,
text_opinion_filters=text_opinion_filters)
def create_test_pipeline(text_parser, doc_ops, annotators, text_opinion_filters):
""" This is a pipeline for TEST data annotation.
We perform annotation of the attitudes.
"""
assert(isinstance(text_parser, BaseTextParser))
assert(isinstance(annotators, list))
assert(isinstance(doc_ops, DocumentOperations))
return text_opinion_extraction_pipeline(
annotators=annotators,
text_parser=text_parser,
get_doc_by_id_func=doc_ops.by_id,
text_opinion_filters=text_opinion_filters)

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

No branches or pull requests

1 participant