Help on module InferenceIGT:

NAME
    InferenceIGT - # -*- coding: utf-8 -*-

CLASSES
    builtins.object
        InferenceIGT
    
    class InferenceIGT(builtins.object)
     |  InferenceIGT provides and interface to enriched IGT in Xigt format.
     |  Each instance of this class represents one IGT and provides methods
     |  to determine some of the properties of this IGT.
     |  
     |  Methods defined here:
     |  
     |  __init__(self, XIGT)
     |      Class intialization primarily tests and if possible creates an
     |      access variable for each tier, setting a truth value on the tier's
     |      accessibility.
     |      
     |         Args:
     |            XIGT -- A single IGT in Xigt format
     |  
     |  all_glosses_in_word(self, word_id)
     |      Generate a list of all glosses for the given word.
     |      
     |      Args:
     |         word_id -- A word tier or glossed word tier id
     |      
     |      Returns:
     |         list -- all glosses in word
     |  
     |  get_adjacent_pos_tags(self, word_id)
     |      Determine the POS tags of the words on either side of the given word.
     |      Again, check both POS tiers if necessary/possible.
     |      
     |         Args:
     |            word_id -- A word tier or glossed word tier id
     |      
     |         Returns:
     |            list -- Item zero is left POS tag, item one is right POS tag
     |  
     |  get_bound_orthography(self, g_id)
     |      Find the orthography associated with the given g_id.
     |      
     |       Args:
     |          g_id -- A gloss tier id
     |      
     |      Returns:
     |         string -- orthography of gloss
     |  
     |  get_free_orthography(self, word_id)
     |      Find the orthography associated with the given word.
     |      
     |       Args:
     |          word_id -- A word tier or glossed word tier id
     |      
     |      Returns:
     |         string -- orthography of word
     |  
     |  get_gw_id(self, w_id)
     |      Find the gw_id (gloss word tier) associated with the given w_id.
     |      
     |      Args:
     |         w_id -- A word tier id
     |      
     |      Returns:
     |         string -- gw_id
     |  
     |  get_has_conjunction(self)
     |      Determine if this IGT contains conjunctions by first checking
     |      the glossed word POS tier and if that fails the dependency 
     |      parse tier.
     |      
     |         Returns:
     |            bool -- True if IGT contains conjunctions
     |  
     |  get_is_question(self)
     |      Determine if this IGT represents a question.
     |      
     |      Returns:
     |         bool -- True if IGT is a question
     |  
     |  get_m_id(self, g_id)
     |      Find the m_id (morpheme tier) associated with the give g_id.
     |      
     |      Args:
     |         g_id -- A gloss tier id
     |      
     |      Returns:
     |         string -- m_id
     |  
     |  get_pos_tag(self, word_id)
     |      Determine the POS tag of the word provided.
     |      Check both POS tiers if necessary/possible.
     |      
     |         Args:
     |            word_id -- A word tier or glossed word tier id
     |      
     |         Returns:
     |            string -- POS tag of word
     |  
     |  get_primary_verb_loc(self)
     |      Make several attempts to determine the primary verb in the sentence
     |      represented by the IGT. First look at the dependency parse tier, then
     |      the phrase structure parse and POS tiers. If all attempts fail return
     |      a value of None.
     |      
     |         Returns:
     |            string -- The word tier (w_id) of the primary verb
     |  
     |  get_ps_children(self, word_id)
     |      Generate a list of the phrase structure children, if any, for the given word.
     |      
     |      Args:
     |         word_id -- A word tier or glossed word tier id
     |      
     |      Returns:
     |         list -- List of wps_id values for children
     |  
     |  get_ps_parent(self, word_id)
     |      Determine the parent phrase structure element for the given word.
     |      
     |      Args:
     |         word_id -- A word tier or glossed word tier id
     |      
     |      Returns:
     |         tuple -- Item zero is parent wps_id, and item one is parent phrase structure element name
     |  
     |  get_ps_siblings(self, word_id)
     |      Generate a list of the phrase structure sibling, if any, for the given word.
     |      
     |      Args:
     |         word_id -- A word tier or glossed word tier id
     |      
     |      Returns:
     |         list -- List of wps_id values for siblings
     |  
     |  get_verb_relative_loc(self, word_id)
     |      Determine the verb relative (before or after) location of the 
     |      given word.
     |      
     |         Args:
     |            word_id -- A word tier or glossed word tier id
     |      
     |         Returns:
     |            string -- Representing location, 'before' or 'after', verb
     |  
     |  get_w_id(self, gw_id)
     |      Find the w_id associated with the given gw_id.
     |      
     |      Args:
     |         gw_id -- A word gloss tier id
     |      
     |      Returns:
     |         string -- w_id
     |  
     |  get_word_modifies(self, word_id)
     |      Determine what phrase structure element (V, VP, or S) is modified
     |      by the given word.
     |      
     |         Args:
     |            word_id -- A word tier or glossed word tier id
     |      
     |         Returns:
     |            string -- Phrase structure element value of 'v', 'vp', or 's'
     |  
     |  gram_in_gloss_count(self, gram_list)
     |      Determine how many times any of a list of grams appear in a gloss line.
     |      
     |      Args:
     |         gram_list -- List of grams to searh for in gloss line
     |      
     |      Returns:
     |         int -- count of grams
     |  
     |  gram_in_tier(self, gram_list, a_tier)
     |      Determine if a gram from the list appears in the given tier.
     |      
     |      Args:
     |         gram_list -- The list of grams to search for
     |         a_tier -- The tier to search
     |      
     |      Returns:
     |         bool -- True if any gram in tier, False otherwise
     |  
     |  gram_in_tier_item(self, gram_list, tier_item)
     |      Determine if any gram from the gram list appears in the tier item.
     |      
     |      Args:
     |         gram_list -- The list of grams to search for
     |         tier_item -- The Xigt object to search
     |      
     |      Returns:
     |         bool -- True if any gram in item, False otherwise
     |  
     |  is_affixed(self, tier_item)
     |      Determine if the given item displays affixation.
     |      
     |      Args:
     |         tier_item -- Likely a word tier or glossed word tier id
     |      
     |      Returns:
     |         bool - True if item shows affixation, False otherwise
     |  
     |  is_verb_adjacent(self, word_id)
     |      Determine if there is a verb on either side of the given word.
     |      
     |      Args:
     |         word_id -- A word tier or glossed word tier id
     |      
     |      Returns:
     |         bool -- True if verb next door, False otherwise
     |  
     |  ----------------------------------------------------------------------
     |  Data descriptors defined here:
     |  
     |  __dict__
     |      dictionary for instance variables (if defined)
     |  
     |  __weakref__
     |      list of weak references to the object (if defined)

DATA
    DS_CONJUNCTION_TAG = 'conj'
    DS_ROOT_TAG = 'root'
    MOD_to_modifies = {'S': 's', 'VB': 'v', 'VBD': 'v', 'VBG': 'v', 'VBN':...
    POS_CONJUNCTION_TAG = 'CONJ'
    POS_VERB_TAG = 'VERB'
    PS_QUESTION_TAG = 'SQ'
    PS_VERB_TAGS = ['VB', 'VBD', 'VBG', 'VBN', 'VBP', 'VBZ']

FILE
    /home2/asp7991/LING700/InferenceIGT.py


