Skip to content

Commit

Permalink
#250 and #251 related
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolay-r committed Feb 15, 2022
1 parent f513500 commit c539501
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/network/infer/opin_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ def LabelsFormatter(self):

def iter_opinions_for_extraction(self, doc_id, data_type):
# Reading automatically annotated collection of neutral opinions.
# TODO. #250, #251 provide opinion annotation here for the particular document.
return self.__exp_io.read_opinion_collection(
target=self.__exp_io.create_result_opinion_collection_target(
doc_id=doc_id,
Expand All @@ -35,4 +36,4 @@ def create_opinion_collection(self, opinions=None):
return OpinionCollection(opinions=[] if opinions is None else opinions,
synonyms=self.__synonyms,
error_on_duplicates=True,
error_on_synonym_end_missed=True)
error_on_synonym_end_missed=True)

0 comments on commit c539501

Please sign in to comment.