Skip to content

Commit

Permalink
#250 related
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolay-r committed Feb 15, 2022
1 parent 5796e1d commit f513500
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arekit/contrib/networks/core/input/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ def __perform_writing(exp_ctx, exp_io, doc_ops, data_type, opinion_provider,
opinions_repo.write(writer=exp_io.create_opinions_writer(),
target=exp_io.create_opinions_writer_target(data_type=data_type))

# TODO. #250 this part is not related to a helper.
# TODO. This is a particular implementation, which is considered to be
# TODO. Implemented at iter_opins_for_extraction (OpinionOperations)
@staticmethod
def __perform_annotation(exp_ctx, exp_io, doc_ops, opin_ops, data_type):
collections_it = exp_ctx.Annotator.iter_annotated_collections(
Expand Down Expand Up @@ -143,6 +146,7 @@ def prepare(exp_ctx, exp_io, doc_ops, opin_ops, terms_per_context, balance, valu
value_to_group_id_func=value_to_group_id_func,
parse_news_func=lambda doc_id: doc_ops.parse_doc(doc_id),
iter_doc_opins=lambda doc_id:
# TODO. Perform annotation here.
opin_ops.iter_opinions_for_extraction(doc_id=doc_id, data_type=data_type),
terms_per_context=terms_per_context)

Expand Down

0 comments on commit f513500

Please sign in to comment.