| { |
| "paper_id": "E99-1041", |
| "header": { |
| "generated_with": "S2ORC 1.0.0", |
| "date_generated": "2023-01-19T10:37:33.349591Z" |
| }, |
| "title": "The Treegram Index An Efficient Technique for Retrieval in Linguistic Treebanks", |
| "authors": [ |
| { |
| "first": "Hans", |
| "middle": [], |
| "last": "Argenton", |
| "suffix": "", |
| "affiliation": {}, |
| "email": "hans.argenton@infineon.com" |
| }, |
| { |
| "first": "Anke", |
| "middle": [], |
| "last": "Feldhaus", |
| "suffix": "", |
| "affiliation": {}, |
| "email": "feldhaus@sfs.nphil.uni-tuebingen.de" |
| } |
| ], |
| "year": "", |
| "venue": null, |
| "identifiers": {}, |
| "abstract": "", |
| "pdf_parse": { |
| "paper_id": "E99-1041", |
| "_pdf_hash": "", |
| "abstract": [], |
| "body_text": [ |
| { |
| "text": "Multiway trees (MT, henceforth) are a common and well-understood data structure for describing hierarchical linguistic information. With the availability of large treebanks, retrieval techniques for highly structured data now become essential. In this contribution, we investigate the efficient retrieval of MT structures at the cost of a complex index--the Treegram Index.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "", |
| "sec_num": null |
| }, |
| { |
| "text": "We illustrate our approach with the VENONA retrieval system, which handles the BH t (Biblia Hebraica transeripta) treebank comprising 508,650 phrase structure trees with maximum degree eight and maximum height 17, containing altogether 3.3 million Old-Hebrew words.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "", |
| "sec_num": null |
| }, |
| { |
| "text": "The base entities of the tree-retrieval problem for positional MTs are (labeled) rooted MTs where children are distinguished by their position. Let s and t be two MTs; t contains s (written as s ~ t) if there exists an injective embedding such that (1) nodes are mapped to nodes with identical labels and (2) a root of a child with position i is mapped to a root of a child with the same position.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Multiway-tree retrieval based on treegrams", |
| "sec_num": "1" |
| }, |
| { |
| "text": "Retrieval problem: Let DB be a set of' labeled positional MTs and let q be a query tree having the same label alphabet. The problem is to find efficiently all trees t C DB that contain q.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Multiway-tree retrieval based on treegrams", |
| "sec_num": "1" |
| }, |
| { |
| "text": "To cope with this tree-retrieval problem, we generalize the well-known n-gram indexing technique for text databases: In place of substrings with fixed length, we use subtrees with fixed maximal height-treegrams.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Multiway-tree retrieval based on treegrams", |
| "sec_num": "1" |
| }, |
| { |
| "text": "Let TG(t,h) denote the set of all treegrams of height h contained in the MT t, and let T(DB, g) denote the set of all database trees that contain the treegram g. Assume that g has the height h and that T(DB, g) can be efficiently computed using the index relation I~B := {(g, t)lt E DB A g C TG(t, h)}, which lists for each treegram g of height h every database tree that contains g. We compute the desired result set R = {t C DBIq ___ t} for a given query tree q such that q's height is greater than or equal h as follows:", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Multiway-tree retrieval based on treegrams", |
| "sec_num": "1" |
| }, |
| { |
| "text": "Retrieval method:", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Multiway-tree retrieval based on treegrams", |
| "sec_num": "1" |
| }, |
| { |
| "text": "(1) Compute the set TG(q,h): All treegrams of height h contained in the query.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Multiway-tree retrieval based on treegrams", |
| "sec_num": "1" |
| }, |
| { |
| "text": "(2) Compute the candidate set of\" (t Candh(q) := Ng~Ta(q,h ) T(DB, g). The set of all database trees that contain every query treegram.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Multiway-tree retrieval based on treegrams", |
| "sec_num": "1" |
| }, |
| { |
| "text": "(3) Compute the result set R = {t E Cand~(q)l q ! t}.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Multiway-tree retrieval based on treegrams", |
| "sec_num": "1" |
| }, |
| { |
| "text": "The costly operation in this approach is the last containment test q _ t. The building of index Ihs is justified if in general tile number of candidateswill be much smaller than the number of trees in DB.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Multiway-tree retrieval based on treegrams", |
| "sec_num": "1" |
| }, |
| { |
| "text": "The treegram-index retrieval method given above encounters the following interesting problems:", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Efficient query evaluation", |
| "sec_num": "2" |
| }, |
| { |
| "text": "(A) A single treegram may be very complex because of its unlimited degree and label strings; this leads to costly look-up operations.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Efficient query evaluation", |
| "sec_num": "2" |
| }, |
| { |
| "text": "(B) There are many treegrams rooting at a given node in a database tree: To accomodate queries with subtree variables, the index has to contain all matching treegrams for that subtree.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Efficient query evaluation", |
| "sec_num": "2" |
| }, |
| { |
| "text": "(c) It is quite expensive to intersect the tree sets T(DB, g) for all treegrams g contained in the query q.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Efficient query evaluation", |
| "sec_num": "2" |
| }, |
| { |
| "text": "VENONA addresses these problems by the following approach:", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Efficient query evaluation", |
| "sec_num": "2" |
| }, |
| { |
| "text": "Problem A: Processing of a single treegram: (1) Node labels hash to an integer of a few bytes: We do not consider labels structured; to model the structure of word forms, feature terms should be used 1. (2) VENONA deals only with treegrams of a maximal degree d; if a tree is of greater degree, it will be transformed automatically to a d-ary tree. 2 (3) For describing a single treegram g, VENONA takes each of g's hashed labels and combines it with the position of its corresponding node in a complete d-ary tree; an integer encoding g's structure completes this representation: Structure is at least as essential for tree retrieval as label information.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Efficient query evaluation", |
| "sec_num": "2" |
| }, |
| { |
| "text": "1Due to lack of space, we cannot present our extension of treegram indexing to feature terms in this abstract.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Efficient query evaluation", |
| "sec_num": "2" |
| }, |
| { |
| "text": "2The employed algorithm is a generalization of the well-known transformation of trees to binary trees. d's value is a configurable parameter of the indexgeneration.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Efficient query evaluation", |
| "sec_num": "2" |
| }, |
| { |
| "text": "Problem B VENONA uses only one treegram per node v: the treegram including every node found on the first h levels of the subtree rooted in v. This approach keeps the index small but introduces another problem: A query treegram may not appear in the treegram index as it is. Therefore, VENONA expands all query treegram structures at runtime; for a given query treegram g, this expansion yields all database treegrams with a structure compatible to g. That approach keeps the treegram index small and preserves efficiency.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Efficient query evaluation", |
| "sec_num": "2" |
| }, |
| { |
| "text": "Problem C The evaluation of a given query q is processed along the following steps: (1) According to q's degree and height, VENONA chooses a treegram index among those available for the tree database. (2) VENONA collects q's treegrams and represents them by sets of treegram parts. For a given query treegram, VENONA expands the structure number to a set of index treegram structures and removes those labels that consist of a variable: Variables and the constraints that they impose belong to the matching phase.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Efficient query evaluation", |
| "sec_num": "2" |
| }, |
| { |
| "text": "(3) VENONA sorts q's treegrams according to their .selectivity by estimating a treegram's selectivity based on the selectivity of its treegram parts. (4) VENONA estimates how many query treegrams it has to evaluate to yield a candidate set small enough for the tree matcher; only for those it determines the corresponding index treegrams. (5) VENONA processes these selected treegrams until the candidate set has the desired size--if necessary, falling back on some of the treegrams put aside. (6) Finally, the tree matcher selects the answer trees from these candidates.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Efficient query evaluation", |
| "sec_num": "2" |
| } |
| ], |
| "back_matter": [], |
| "bib_entries": {}, |
| "ref_entries": {} |
| } |
| } |