Skip to content

Commit

Permalink
#328 fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolay-r committed Jun 7, 2022
1 parent 040d6b3 commit 8c38e5a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions arekit/contrib/source/brat/entities/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ def extract_entities(input_file):
line = line.decode('utf-8')

args = line.split()

record_type = args[0][1]
# Entities (objects) are prefixed with `T`
if record_type != 'T':
continue

e_id = int(args[0][1:])
e_str_type = args[1]
e_begin = int(args[2])
Expand Down

0 comments on commit 8c38e5a

Please sign in to comment.