QNLP  v1.0
QNLP.tagging Namespace Reference

Namespaces

 tag_file
 
 test_tagging
 
 word_types
 

Functions

def matchables (classType, tag)
 

Variables

string name
 
list __all__
 

Function Documentation

◆ matchables()

def QNLP.tagging.matchables (   classType,
  tag 
)

Definition at line 20 of file __init__.py.

20 def matchables(classType, tag):
21  if isinstance(classType, Noun) or classType is Noun:
22  return tag in ["NN","NNS","NNP","NNPS","NOUN", "PROPN"]
23  elif isinstance(classType, Verb) or classType is Verb:
24  return tag in ["VB", "VBD", "VBG", "VBN", "VBP", "VBZ","VERB"]
25  else:
26  return False
def matchables(classType, tag)
Definition: __init__.py:20

Variable Documentation

◆ __all__

list QNLP.tagging.__all__
private

Definition at line 15 of file __init__.py.

◆ name

string QNLP.tagging.name

Definition at line 1 of file __init__.py.