Skip to content

Commit

Permalink
minor comment edit
Browse files Browse the repository at this point in the history
  • Loading branch information
e-maud authored and simon-clematide committed May 1, 2022
1 parent a388f60 commit 4efc81b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions hipe_evaluation/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def read_conll_annotations(fname, glueing_col_pairs=None, structure_only=False):
continue
elif first_item.startswith("#"):
# segmenting lines
if first_item.startswith("# segment") and sent_annotations: # TODO: no segment in HIPE2022, we need to use EndOfSentence
if first_item.startswith("# segment") and sent_annotations: # TODO: segment is hipe2020 legacy, will be ignored
doc_annotations.append(sent_annotations)
sent_annotations = []

Expand Down Expand Up @@ -412,7 +412,6 @@ def collect_link_objects_ner(tokens, link_cols, ner_cols, n_best=1, gs=False):
union.append(Entity(tag, link.start_offset, link.end_offset, link.span_text))

links_union.append(union)

return links_union


Expand Down Expand Up @@ -504,5 +503,4 @@ def collect_link_objects_original(tokens, cols, n_best=1):
union.append(Entity(tag, link.start_offset, link.end_offset, link.span_text))

links_union.append(union)

return links_union

0 comments on commit 4efc81b

Please sign in to comment.