From 4c194289e4fd6907bbaa08812a8ed89e7e5e5b56 Mon Sep 17 00:00:00 2001 From: Alexey Matveev <> Date: Fri, 19 Jul 2019 11:43:37 +0300 Subject: [PATCH] #FIX Lambda may not be necessary --- app/api/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/utils.py b/app/api/utils.py index 04a50b38..eec8d60d 100644 --- a/app/api/utils.py +++ b/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)