| 
    QNLP
    v1.0
    
   | 
 

Public Member Functions | |
| def | __init__ (self, verb=None, pos=[]) | 
| def | addL (self, noun, pos) | 
| def | addR (self, noun, pos) | 
| def | createLGraph (self, G=None) | 
| def | createRGraph (self, G=None) | 
Static Public Member Functions | |
| def | calc_verb_noun_pairings (corpus_list_v, corpus_list_n, dist_cutoff, max_terms=5) | 
Data Fields | |
| verb | |
| pos | |
| left_nouns | |
| right_nouns | |
| lr_nouns | |
Used to define subject/object noun ordering from a given verb. Creates a left/right dict of nouns, wherein given a threshold, verbs with respective nouns within that threshold on either side can be thought of as subject (left) or object (right) for bitstring state generation for encoding.
Definition at line 5 of file VerbGraph.py.
| def QNLP.proc.VerbGraph.VerbGraph.__init__ | ( | self, | |
verb = None,  | 
        |||
pos = []  | 
        |||
| ) | 
Definition at line 13 of file VerbGraph.py.
| def QNLP.proc.VerbGraph.VerbGraph.addL | ( | self, | |
| noun, | |||
| pos | |||
| ) | 
Definition at line 20 of file VerbGraph.py.
References QNLP.proc.VerbGraph.VerbGraph.left_nouns.
| def QNLP.proc.VerbGraph.VerbGraph.addR | ( | self, | |
| noun, | |||
| pos | |||
| ) | 
Definition at line 23 of file VerbGraph.py.
References QNLP.proc.VerbGraph.VerbGraph.right_nouns.
      
  | 
  static | 
Definition at line 54 of file VerbGraph.py.
| def QNLP.proc.VerbGraph.VerbGraph.createLGraph | ( | self, | |
G = None  | 
        |||
| ) | 
Definition at line 26 of file VerbGraph.py.
References QNLP.proc.VerbGraph.VerbGraph.left_nouns, and QNLP.proc.VerbGraph.VerbGraph.verb.
| def QNLP.proc.VerbGraph.VerbGraph.createRGraph | ( | self, | |
G = None  | 
        |||
| ) | 
Definition at line 39 of file VerbGraph.py.
References QNLP.proc.VerbGraph.VerbGraph.right_nouns, and QNLP.proc.VerbGraph.VerbGraph.verb.
| QNLP.proc.VerbGraph.VerbGraph.left_nouns | 
Definition at line 16 of file VerbGraph.py.
Referenced by QNLP.proc.VerbGraph.VerbGraph.addL(), and QNLP.proc.VerbGraph.VerbGraph.createLGraph().
| QNLP.proc.VerbGraph.VerbGraph.lr_nouns | 
Definition at line 18 of file VerbGraph.py.
| QNLP.proc.VerbGraph.VerbGraph.pos | 
Definition at line 15 of file VerbGraph.py.
| QNLP.proc.VerbGraph.VerbGraph.right_nouns | 
Definition at line 17 of file VerbGraph.py.
Referenced by QNLP.proc.VerbGraph.VerbGraph.addR(), and QNLP.proc.VerbGraph.VerbGraph.createRGraph().
| QNLP.proc.VerbGraph.VerbGraph.verb | 
Definition at line 14 of file VerbGraph.py.
Referenced by QNLP.proc.VerbGraph.VerbGraph.createLGraph(), and QNLP.proc.VerbGraph.VerbGraph.createRGraph().