brendano / ark-tweet-nlp

CMU ARK Twitter Part-of-Speech Tagger
http://www.ark.cs.cmu.edu/TweetNLP/
Other
574 stars 199 forks source link

JSON output #18

Closed yvesx closed 11 years ago

yvesx commented 11 years ago

pls see my comment on closed ticket #12

Hi, I saw this thread and I wonder if we could have JSON output as well. if you like, i can make the changes and maybe merge the changes. right now the conll output is like: Tax N 0.8294 benefits N 0.9934 of P 0.9954 retirement N 0.9764 savings N 0.9953 in P 0.9947 jeopardy N 0.9038 -- , 0.9228 one $ 0.9548 economist N 0.9925 says V 0.9961 the D 0.9906 hit N 0.9130 to P 0.9981 savers N 0.5918 could V 0.9966 endanger V 0.9993 the D 0.9996 economy N 0.9971 . , 0.9980

Does it make sense to have output like { "values":[ {"word":"Tax","POS":"N","confidence":0.8294}, ...... ]

}