Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save KnowledgeGarden/6793150a0a85b9b3ddd389a1d8170d2b to your computer and use it in GitHub Desktop.
Save KnowledgeGarden/6793150a0a85b9b3ddd389a1d8170d2b to your computer and use it in GitHub Desktop.
annotated sentence coref
"sents": [
"Trifluoperazine (tfp) might be an interesting candidate for treating Wilms Tumor because it antagonizes CALM1 (a protein target).",
"CALM1 regulates an inflammatory gene, IL-6.",
"Lastly we know that IL-6 is associated with Wilms Tumor."
],
"nlp": {
"corefs": [
{
"chainID": 4,
"mention": [
{
"mentionID": 4,
"mentionType": "PRONOMINAL",
"number": "SINGULAR",
"gender": "NEUTRAL",
"animacy": "INANIMATE",
"beginIndex": 14,>>>> "it"
"endIndex": 15,
"headIndex": 14,
"sentenceIndex": 0,
"position": 5
},
{
"mentionID": 0,
"mentionType": "PROPER",
"number": "UNKNOWN",
"gender": "NEUTRAL",
"animacy": "INANIMATE",
"beginIndex": 11, >>>> "wilms tumor because"
"endIndex": 13,
"headIndex": 12,
"sentenceIndex": 0,
"position": 1
},
{
"mentionID": 10,
"mentionType": "PROPER",
"number": "UNKNOWN",
"gender": "NEUTRAL",
"animacy": "INANIMATE",
"beginIndex": 10, >>>>> out of bounds for sentence 2
"endIndex": 12,
"headIndex": 11,
"sentenceIndex": 2,
"position": 1
}
],
"representative": 1
},
{
"chainID": 12,
"mention": [
{
"mentionID": 12,
"mentionType": "NOMINAL",
"number": "SINGULAR",
"gender": "UNKNOWN",
"animacy": "INANIMATE",
"beginIndex": 4, >>>>>>>>>>> "IL-6 is associated with"
"endIndex": 7,
"headIndex": 4,
"sentenceIndex": 2,
"position": 3
},
{
"mentionID": 9,
"mentionType": "NOMINAL",
"number": "SINGULAR",
"gender": "UNKNOWN",
"animacy": "INANIMATE",
"beginIndex": 6, >>>>>>>>>>>>>>> "IL6"... but endIndex out of bounds
"endIndex": 9,
"headIndex": 6,
"sentenceIndex": 1,
"position": 3
}
],
"representative": 1
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment