From 49861b1652ef52f075b568f76474898fb4bc5093 Mon Sep 17 00:00:00 2001 From: Kai Date: Thu, 6 May 2021 13:17:07 +0200 Subject: [PATCH] support confidences in find-entities --- tsvtools/tsv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsvtools/tsv.py b/tsvtools/tsv.py index 409f475..799b1b5 100644 --- a/tsvtools/tsv.py +++ b/tsvtools/tsv.py @@ -15,7 +15,7 @@ def read_tsv(tsv_file): def write_tsv(tsv, urls, tsv_out_file): - if 'conf' in tsv.columns(): + if 'conf' in tsv.columns: out_columns = ['No.', 'TOKEN', 'NE-TAG', 'NE-EMB', 'ID', 'url_id', 'left', 'right', 'top', 'bottom', 'conf'] else: out_columns = ['No.', 'TOKEN', 'NE-TAG', 'NE-EMB', 'ID', 'url_id', 'left', 'right', 'top', 'bottom']