Browse Source

#FIX Lambda may not be necessary

pull/298/head
Alexey Matveev 6 years ago
parent
commit
4c194289e4
1 changed files with 1 additions and 1 deletions
  1. 2
      app/api/utils.py

2
app/api/utils.py

@ -273,7 +273,7 @@ class CoNLLParser(FileParser):
tag = item.get("ne", None)
if tag is not None:
char_left = sum(map(lambda x: len(x), words)) + len(words)
char_left = sum(map(len, words)) + len(words)
char_right = char_left + len(word)
span = [char_left, char_right, tag]
labels.append(span)

Loading…
Cancel
Save