|
|
@ -307,6 +307,10 @@ def tsv2tsv(tsv_in_file, tsv_out_file, ner_rest_endpoint, noproxy,
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
tsv_tmp, _ = ner(tsv, ner_rest_endpoint, keep_tokenization=keep_tokenization)
|
|
|
|
tsv_tmp, _ = ner(tsv, ner_rest_endpoint, keep_tokenization=keep_tokenization)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if tsv_out_file is None:
|
|
|
|
|
|
|
|
print("\n")
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|
print("\n==>")
|
|
|
|
print("\n==>")
|
|
|
|
|
|
|
|
|
|
|
|
print("Output file: {}".format(tsv_out_file))
|
|
|
|
print("Output file: {}".format(tsv_out_file))
|
|
|
@ -356,10 +360,6 @@ def tsv2tsv(tsv_in_file, tsv_out_file, ner_rest_endpoint, noproxy,
|
|
|
|
|
|
|
|
|
|
|
|
word_pos += 1
|
|
|
|
word_pos += 1
|
|
|
|
|
|
|
|
|
|
|
|
if tsv_out_file is None:
|
|
|
|
|
|
|
|
print("\n")
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
write_tsv(tsv_out, urls, contexts, tsv_out_file)
|
|
|
|
write_tsv(tsv_out, urls, contexts, tsv_out_file)
|
|
|
|
|
|
|
|
|
|
|
|
print("\n")
|
|
|
|
print("\n")
|
|
|
|