Skip to content

Instantly share code, notes, and snippets.

@vanatteveldt
Created November 7, 2013 22:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vanatteveldt/7363336 to your computer and use it in GitHub Desktop.
Save vanatteveldt/7363336 to your computer and use it in GitHub Desktop.
wva@amcatsql2:~/xtas/xtas$ cat /tmp/marines.conll
1 The _ DT DT _ 2 det _ _
2 marines _ NNS NNS _ 3 nsubj _ _
3 attacked _ VBN VBN _ 0 root _ _
4 the _ DT DT _ 5 det _ _
5 compound _ NN NN _ 3 dobj _ _
6 . _ . . _ 3 punct _ _
wva@amcatsql2:~/xtas/xtas$ cat /tmp/marines.conll | nc localhost 9888 | python -m json.tool
{
"frames": [
{
"annotationSets": [
{
"frameElements": [
{
"name": "Victim",
"spans": [
{
"end": 5,
"start": 3,
"text": "the compound"
}
]
},
{
"name": "Assailant",
"spans": [
{
"end": 2,
"start": 0,
"text": "The marines"
}
]
}
],
"rank": 0,
"score": 97.57311668385962
}
],
"target": {
"name": "Attack",
"spans": [
{
"end": 3,
"start": 2,
"text": "attacked"
}
]
}
}
],
"tokens": [
"The",
"marines",
"attacked",
"the",
"compound",
"."
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment