Skip to content

Commit

Permalink
#312 fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolay-r committed Apr 2, 2022
1 parent 36e3aae commit 3a11aa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arekit/common/data/input/providers/rows/samples.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def __assign_value(column, value):

# Entity indicies from the related context.
entities = list(filter(lambda term: isinstance(term, Entity), sentence_terms))
entity_inds = [i for i, t in sentence_terms if isinstance(t, Entity)]
entity_inds = [str(i) for i, t in enumerate(sentence_terms) if isinstance(t, Entity)]
row[const.ENTITY_VALUES] = ",".join([e.Value.replace(',', '') for e in entities])
row[const.ENTITY_TYPES] = ",".join([e.Type.replace(',', '') for e in entities])
row[const.ENTITIES] = ",".join(entity_inds)
Expand Down

0 comments on commit 3a11aa3

Please sign in to comment.