QNLP  v1.0
QNLP.tagging.word_types.Verb Class Reference
Inheritance diagram for QNLP.tagging.word_types.Verb:
Inheritance graph
Collaboration diagram for QNLP.tagging.word_types.Verb:
Collaboration graph

Public Member Functions

def __init__ (self, isAdj, adjOrder=0, Noun left_adj=None, Noun right_adj=None, Meaning meaning=None)
 
def __str__ (self)
 

Data Fields

 left_adj
 
 right_adj
 
 meaning
 
 isAdj
 
 adjOrder
 
 label
 

Detailed Description

Definition at line 67 of file word_types.py.

Constructor & Destructor Documentation

◆ __init__()

def QNLP.tagging.word_types.Verb.__init__ (   self,
  isAdj,
  adjOrder = 0,
Noun   left_adj = None,
Noun   right_adj = None,
Meaning   meaning = None 
)

Definition at line 68 of file word_types.py.

68  def __init__(self, isAdj, adjOrder=0, left_adj : Noun = None,
69  right_adj : Noun = None,
70  meaning : Meaning = None):
71  super().__init__('v', isAdj, adjOrder)
72  self.left_adj = left_adj
73  self.right_adj = right_adj
74  self.meaning = meaning
75 

Member Function Documentation

◆ __str__()

def QNLP.tagging.word_types.AdjointType.__str__ (   self)
inherited

Reimplemented from QNLP.tagging.word_types.PregroupType.

Definition at line 34 of file word_types.py.

34  def __str__(self):
35  adj_order_str = ""
36  if self.isAdj:
37  adj_order_str = "^"
38 
39  for ii in range(abs(self.adjOrder)):
40  adj_order_str += 'l' if self.adjOrder < 0 else 'r'
41 
42  return super().__str__() + ": ADJ=" + str(self.isAdj) + " ORD=" + adj_order_str
43 

References QNLP.tagging.word_types.AdjointType.adjOrder, and QNLP.tagging.word_types.AdjointType.isAdj.

Field Documentation

◆ adjOrder

QNLP.tagging.word_types.AdjointType.adjOrder
inherited

Definition at line 32 of file word_types.py.

Referenced by QNLP.tagging.word_types.AdjointType.__str__().

◆ isAdj

QNLP.tagging.word_types.AdjointType.isAdj
inherited

Definition at line 29 of file word_types.py.

Referenced by QNLP.tagging.word_types.AdjointType.__str__().

◆ label

QNLP.tagging.word_types.PregroupType.label
inherited

Definition at line 17 of file word_types.py.

Referenced by QNLP.tagging.word_types.PregroupType.__str__().

◆ left_adj

QNLP.tagging.word_types.Verb.left_adj

Definition at line 70 of file word_types.py.

◆ meaning

QNLP.tagging.word_types.Verb.meaning

Definition at line 72 of file word_types.py.

◆ right_adj

QNLP.tagging.word_types.Verb.right_adj

Definition at line 71 of file word_types.py.


The documentation for this class was generated from the following file: