Commit 390bc184 by hxw

update

parent ce4a6430
...@@ -58,6 +58,7 @@ def get_ner(file_name): ...@@ -58,6 +58,7 @@ def get_ner(file_name):
NamedEntity.append(OrderedDict([("Text",entity),("Begin",begin),("Type",Type)])) NamedEntity.append(OrderedDict([("Text",entity),("Begin",begin),("Type",Type)]))
wf.write(json.dumps(OrderedDict([("SentId",sentId),("Sentence",sentence),("NamedEntity",NamedEntity)]))+'\n') wf.write(json.dumps(OrderedDict([("SentId",sentId),("Sentence",sentence),("NamedEntity",NamedEntity)]))+'\n')
wf.close()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment