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

Annotation -- Opinion annotation should be implemented at OpinionOperations.iter_opinions_for_extraction #281

Closed
nicolay-r opened this issue Feb 15, 2022 · 1 comment

Comments

@nicolay-r
Copy link
Owner

nicolay-r commented Feb 15, 2022

Proceeds issue #250

Steps to refactor: #249

def __perform_annotation(exp_ctx, exp_io, doc_ops, opin_ops, data_type):
collections_it = exp_ctx.Annotator.iter_annotated_collections(
data_type=data_type, doc_ops=doc_ops, opin_ops=opin_ops)
for doc_id, collection in collections_it:
target = exp_io.create_opinion_collection_target(doc_id=doc_id, data_type=data_type)
exp_io.write_opinion_collection(collection=collection,
target=target,
labels_formatter=opin_ops.LabelsFormatter)

@nicolay-r
Copy link
Owner Author

Fixed in 745d663

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

No branches or pull requests

1 participant