Skip to content

Instantly share code, notes, and snippets.

@hunterhector
Created June 13, 2020 03:53
Show Gist options
  • Save hunterhector/9458ce873d886f0b915bd0ea15231e57 to your computer and use it in GitHub Desktop.
Save hunterhector/9458ce873d886f0b915bd0ea15231e57 to your computer and use it in GitHub Desktop.
Reproducing stave annotation bug
{
"name": "all_ontology",
"definitions": [
{
"entry_name": "ft.onto.base_ontology.Token",
"parent_entry": "forte.data.ontology.top.Annotation",
"description": "A span based annotation :class:`Token`, used to represent a token or a word.",
"attributes": [
{
"name": "pos",
"type": "str"
},
{
"name": "ud_xpos",
"type": "str",
"description": "Language specific pos tag. Used in CoNLL-U Format. Refer to https://universaldependencies.org/format.html"
},
{
"name": "lemma",
"type": "str",
"description": "Lemma or stem of word form."
},
{
"name": "chunk",
"type": "str"
},
{
"name": "ner",
"type": "str"
},
{
"name": "sense",
"type": "str"
},
{
"name": "is_root",
"type": "bool"
},
{
"name": "ud_features",
"type": "Dict",
"key_type": "str",
"value_type": "str"
},
{
"name": "ud_misc",
"type": "Dict",
"key_type": "str",
"value_type": "str"
}
]
},
{
"entry_name": "ft.onto.base_ontology.Document",
"parent_entry": "forte.data.ontology.top.Annotation",
"description": "A span based annotation `Document`, normally used to represent a document."
},
{
"entry_name": "ft.onto.base_ontology.Sentence",
"parent_entry": "forte.data.ontology.top.Annotation",
"description": "A span based annotation `Sentence`, normally used to represent a sentence.",
"attributes": [
{
"name": "speaker",
"type": "str"
},
{
"name": "part_id",
"type": "int"
},
{
"name": "sentiment",
"type": "Dict",
"key_type": "str",
"value_type": "float"
}
]
},
{
"entry_name": "ft.onto.base_ontology.Phrase",
"parent_entry": "forte.data.ontology.top.Annotation",
"description": "A span based annotation `Phrase`.",
"attributes": [
{
"name": "phrase_type",
"type": "str"
}
]
},
{
"entry_name": "ft.onto.base_ontology.Utterance",
"parent_entry": "forte.data.ontology.top.Annotation",
"description": "A span based annotation `Utterance`, normally used to represent an utterance in dialogue."
},
{
"entry_name": "ft.onto.base_ontology.PredicateArgument",
"parent_entry": "forte.data.ontology.top.Annotation",
"description": "A span based annotation `PredicateArgument`, normally used to represent an argument of a predicate, can be linked to the predicate via the predicate link.",
"attributes": [
{
"name": "ner_type",
"type": "str"
},
{
"name": "predicate_lemma",
"type": "str"
},
{
"name": "is_verb",
"type": "bool"
}
]
},
{
"entry_name": "ft.onto.base_ontology.EntityMention",
"parent_entry": "forte.data.ontology.top.Annotation",
"description": "A span based annotation `EntityMention`, normally used to represent an Entity Mention in a piece of text.",
"attributes": [
{
"name": "ner_type",
"type": "str"
}
]
},
{
"entry_name": "ft.onto.base_ontology.EventMention",
"parent_entry": "forte.data.ontology.top.Annotation",
"description": "A span based annotation `EventMention`, used to refer to a mention of an event.",
"attributes": [
{
"name": "event_type",
"type": "str"
}
]
},
{
"entry_name": "ft.onto.base_ontology.PredicateMention",
"parent_entry": "forte.data.ontology.top.Annotation",
"description": "A span based annotation `PredicateMention`, normally used to represent a predicate (normally verbs) in a piece of text.",
"attributes": [
{
"name": "predicate_lemma",
"type": "str"
},
{
"name": "framenet_id",
"type": "str"
},
{
"name": "is_verb",
"type": "bool"
}
]
},
{
"entry_name": "ft.onto.base_ontology.PredicateLink",
"parent_entry": "forte.data.ontology.top.Link",
"description": "A `Link` type entry which represent a semantic role link between a predicate and its argument.",
"attributes": [
{
"name": "arg_type",
"type": "str",
"description": "The predicate link type."
}
],
"parent_type": "ft.onto.base_ontology.PredicateMention",
"child_type": "ft.onto.base_ontology.PredicateArgument"
},
{
"entry_name": "ft.onto.base_ontology.Dependency",
"parent_entry": "forte.data.ontology.top.Link",
"description": "A `Link` type entry which represent a syntactic dependency.",
"attributes": [
{
"name": "dep_label",
"type": "str",
"description": "The dependency label."
},
{
"name": "rel_type",
"type": "str"
}
],
"parent_type": "ft.onto.base_ontology.Token",
"child_type": "ft.onto.base_ontology.Token"
},
{
"entry_name": "ft.onto.base_ontology.EnhancedDependency",
"parent_entry": "forte.data.ontology.top.Link",
"description": "A `Link` type entry which represent a enhanced dependency: \n https://universaldependencies.org/u/overview/enhanced-syntax.html",
"attributes": [
{
"name": "dep_label",
"type": "str",
"description": "The enhanced dependency label in Universal Dependency."
}
],
"parent_type": "ft.onto.base_ontology.Token",
"child_type": "ft.onto.base_ontology.Token"
},
{
"entry_name": "ft.onto.base_ontology.RelationLink",
"parent_entry": "forte.data.ontology.top.Link",
"description": "A `Link` type entry which represent a relation between two entity mentions",
"attributes": [
{
"name": "rel_type",
"type": "str",
"description": "The type of the relation."
}
],
"parent_type": "ft.onto.base_ontology.EntityMention",
"child_type": "ft.onto.base_ontology.EntityMention"
},
{
"entry_name": "ft.onto.base_ontology.CrossDocEntityRelation",
"parent_entry": "forte.data.ontology.top.MultiPackLink",
"description": "A `Link` type entry which represent a relation between two entity mentions across the packs.",
"attributes": [
{
"name": "rel_type",
"type": "str",
"description": "The type of the relation."
}
],
"parent_type": "ft.onto.base_ontology.EntityMention",
"child_type": "ft.onto.base_ontology.EntityMention"
},
{
"entry_name": "ft.onto.base_ontology.CoreferenceGroup",
"parent_entry": "forte.data.ontology.top.Group",
"description": "A group type entry that take `EntityMention`, as members, used to represent coreferent group of entities.",
"member_type": "ft.onto.base_ontology.EntityMention"
},
{
"entry_name": "ft.onto.base_ontology.EventRelation",
"parent_entry": "forte.data.ontology.top.Link",
"description": "A `Link` type entry which represent a relation between two event mentions.",
"attributes": [
{
"name": "rel_type",
"type": "str",
"description": "The type of the relation."
}
],
"parent_type": "ft.onto.base_ontology.EventMention",
"child_type": "ft.onto.base_ontology.EventMention"
},
{
"entry_name": "ft.onto.base_ontology.CrossDocEventRelation",
"parent_entry": "forte.data.ontology.top.MultiPackLink",
"description": "A `Link` type entry which represent a relation between two event mentions across the packs.",
"attributes": [
{
"name": "rel_type",
"type": "str",
"description": "The type of the relation."
}
],
"parent_type": "ft.onto.base_ontology.EventMention",
"child_type": "ft.onto.base_ontology.EventMention"
},
{
"entry_name": "ft.onto.wikipedia.WikiPage",
"parent_entry": "forte.data.ontology.top.Annotation",
"attributes": [
{
"name": "page_id",
"type": "str"
},
{
"name": "page_name",
"type": "str"
}
]
},
{
"entry_name": "ft.onto.wikipedia.WikiBody",
"parent_entry": "forte.data.ontology.top.Annotation",
"attributes": []
},
{
"entry_name": "ft.onto.wikipedia.WikiSection",
"parent_entry": "forte.data.ontology.top.Annotation",
"attributes": [
{
"name": "is_intro",
"type": "bool"
}
]
},
{
"entry_name": "ft.onto.wikipedia.WikiParagraph",
"parent_entry": "forte.data.ontology.top.Annotation",
"attributes": []
},
{
"entry_name": "ft.onto.wikipedia.WikiTitle",
"parent_entry": "forte.data.ontology.top.Annotation",
"attributes": []
},
{
"entry_name": "ft.onto.wikipedia.WikiAnchor",
"parent_entry": "forte.data.ontology.top.Annotation",
"attributes": [
{
"name": "target_page_name",
"type": "str"
}
]
},
{
"entry_name": "ft.onto.wikipedia.WikiInfoBoxProperty",
"parent_entry": "forte.data.ontology.top.Generics",
"attributes": [
{
"name": "key",
"type": "str"
},
{
"name": "value",
"type": "str"
}
]
},
{
"entry_name": "ft.onto.wikipedia.WikiInfoBoxMapped",
"parent_entry": "forte.data.ontology.top.Generics",
"attributes": [
{
"name": "key",
"type": "str"
},
{
"name": "value",
"type": "str"
}
]
}
]
}
{"py/object": "forte.data.data_pack.DataPack", "py/state": {"_text": "In Norse mythology, Brei\u00f0ablik (Broad-gleaming) is the home of Baldr. It is briefly described in Snorri Sturluson's Gylfaginning as one of the halls of Asgard: \"Then there is also in that place the abode called Breidablik, and there is not in heaven a fairer dwelling.\" Later in the work, when Snorri describes Baldr, he gives a longer description, citing Gr\u00edmnism\u00e1l, though he does not name the poem: \"He dwells in the place called Breidablik, which is in heaven; in that place may nothing unclean be, even as is said here:Breidablik 't is called, | where Baldr hasA hall made for himself:In that land | where I know lieFewest baneful runes.\" Brei\u00f0ablik is not otherwise mentioned in the Eddic sources.\n\nSee also\n\n* Brei\u00f0ablik UBK, an Icelandic sports club. \n* Breidablik Peak, a mountain named after Breidablik.\n\nNotes\n\n\nReferences\n\n* Bellows, Henry Adams (transl.) (1936). The Poetic Edda. Princeton: Princeton University Press. Available online \n* Brodeur, Arthur Gilchrist (transl.) (1916). The Prose Edda by Snorri Sturluson. New York: The American-Scandinavian Foundation. Available online", "annotations": [{"py/object": "ft.onto.wikipedia.WikiParagraph", "py/state": {"_span": {"begin": 0, "end": 159, "py/object": "forte.data.base.Span"}, "_tid": 2}}, {"py/object": "ft.onto.wikipedia.WikiSection", "py/state": {"_span": {"begin": 0, "end": 703, "py/object": "forte.data.base.Span"}, "_tid": 1}}, {"py/object": "ft.onto.wikipedia.WikiPage", "py/state": {"_page_id": "577468195", "_page_name": "Breidablik", "_span": {"begin": 0, "end": 1098, "py/object": "forte.data.base.Span"}, "_tid": 0}}, {"py/object": "ft.onto.wikipedia.WikiParagraph", "py/state": {"_span": {"begin": 160, "end": 269, "py/object": "forte.data.base.Span"}, "_tid": 3}}, {"py/object": "ft.onto.wikipedia.WikiParagraph", "py/state": {"_span": {"begin": 270, "end": 401, "py/object": "forte.data.base.Span"}, "_tid": 4}}, {"py/object": "ft.onto.wikipedia.WikiParagraph", "py/state": {"_span": {"begin": 402, "end": 643, "py/object": "forte.data.base.Span"}, "_tid": 5}}, {"py/object": "ft.onto.wikipedia.WikiParagraph", "py/state": {"_span": {"begin": 644, "end": 703, "py/object": "forte.data.base.Span"}, "_tid": 6}}, {"py/object": "ft.onto.wikipedia.WikiTitle", "py/state": {"_span": {"begin": 705, "end": 713, "py/object": "forte.data.base.Span"}, "_tid": 8}}, {"py/object": "ft.onto.wikipedia.WikiSection", "py/state": {"_span": {"begin": 705, "end": 813, "py/object": "forte.data.base.Span"}, "_tid": 7}}, {"py/object": "ft.onto.wikipedia.WikiParagraph", "py/state": {"_span": {"begin": 714, "end": 813, "py/object": "forte.data.base.Span"}, "_tid": 9}}, {"py/object": "ft.onto.wikipedia.WikiTitle", "py/state": {"_span": {"begin": 815, "end": 820, "py/object": "forte.data.base.Span"}, "_tid": 11}}, {"py/object": "ft.onto.wikipedia.WikiSection", "py/state": {"_span": {"begin": 815, "end": 821, "py/object": "forte.data.base.Span"}, "_tid": 10}}, {"py/object": "ft.onto.wikipedia.WikiTitle", "py/state": {"_span": {"begin": 823, "end": 833, "py/object": "forte.data.base.Span"}, "_tid": 13}}, {"py/object": "ft.onto.wikipedia.WikiSection", "py/state": {"_span": {"begin": 823, "end": 1098, "py/object": "forte.data.base.Span"}, "_tid": 12}}, {"py/object": "ft.onto.wikipedia.WikiParagraph", "py/state": {"_span": {"begin": 834, "end": 1098, "py/object": "forte.data.base.Span"}, "_tid": 14}}], "creation_records": {"forte.data.datasets.wikipedia.dbpedia_based_reader.DBpediaWikiReader": {"py/set": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]}}, "field_records": {"forte.data.datasets.wikipedia.dbpedia_based_reader.DBpediaWikiReader": {"py/set": [{"py/tuple": [0, "_page_name"]}, {"py/tuple": [0, "_page_id"]}]}}, "generics": [], "groups": [], "links": [], "meta": {"doc_id": "Breidablik", "language": "eng", "py/object": "forte.data.data_pack.Meta", "span_unit": "character"}, "orig_text_len": 1098, "processed_original_spans": [], "replace_back_operations": [], "serialization": {"next_id": 15}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment