Formatting NER output from Stanford Corenlp

前端 未结 4 1829
耶瑟儿~
耶瑟儿~ 2021-01-15 16:22

I am working with Stanford CoreNLP and using it for NER. But when I extract organization names, I see that each word is tagged with the annotation. So, if the entity is \"NE

4条回答
  •  有刺的猬
    2021-01-15 17:21

    You can set any property in the properties file, include the "outputFormat" property. Stanford CoreNLP supports several different formats such as json, xml, and text. However, the xml option is not an inlineXML format. The xml format gives per token annotations for NER.

         
           
            New 
            New 
            0 
            3 
            NNP 
            ORGANIZATION 
            PER0 
           
           
            York 
            York 
            4 
            8 
            NNP 
            ORGANIZATION 
            PER0 
           
           
            Times 
            Times 
            9 
            14 
            NNP 
            ORGANIZATION 
            PER0 
           
         
    

提交回复
热议问题