Skip to content

Instantly share code, notes, and snippets.

@LazerJesus
Last active May 9, 2024 14:22
Show Gist options
  • Save LazerJesus/e6179e4e2b2c43f531d54f55d4da500b to your computer and use it in GitHub Desktop.
Save LazerJesus/e6179e4e2b2c43f531d54f55d4da500b to your computer and use it in GitHub Desktop.
Stanza / Universal Dependencies - Example
{
"request": {
"language": "es",
"text": "Las ventanas abiertas.",
"processors": "tokenize,mwt,pos,lemma,depparse",
},
"reponse": {
"tokens": [
{
"index": 1,
"token": "Las",
"lemma": "el",
"xpos": "da0fp0",
"upos": "DET",
"feats": "Definite=Def|Gender=Fem|Number=Plur|PronType=Art",
"start_char": 0,
"end_char": 3
},
{
"index": 2,
"token": "ventanas",
"lemma": "ventana",
"xpos": "ncfp000",
"upos": "NOUN",
"feats": "Gender=Fem|Number=Plur",
"start_char": 4,
"end_char": 12
},
{
"index": 3,
"token": "abiertas",
"lemma": "abierto",
"xpos": "aq0fpp",
"upos": "ADJ",
"feats": "Gender=Fem|Number=Plur|VerbForm=Part",
"start_char": 13,
"end_char": 21
},
{
"index": 4,
"token": ".",
"lemma": ".",
"xpos": "fp",
"upos": "PUNCT",
"feats": "PunctType=Peri",
"start_char": 21,
"end_char": 22
}
],
"basicDependencies": [
{
"dep": "det",
"governor": 2,
"governorGloss": "ventanas",
"dependent": 1,
"dependentGloss": "Las"
},
{
"dep": "root",
"governor": 0,
"governorGloss": ".",
"dependent": 2,
"dependentGloss": "ventanas"
},
{
"dep": "amod",
"governor": 2,
"governorGloss": "ventanas",
"dependent": 3,
"dependentGloss": "abiertas"
},
{
"dep": "punct",
"governor": 2,
"governorGloss": "ventanas",
"dependent": 4,
"dependentGloss": "."
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment