Commit 390bc184 by hxw

update

parent ce4a6430
...@@ -57,7 +57,8 @@ def get_ner(file_name): ...@@ -57,7 +57,8 @@ def get_ner(file_name):
entity = sentence[begin:end] entity = sentence[begin:end]
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