text_complexity_analyzer_cm.pipes.negative_expression_tagger
index
/home/hans/Proyectos/Python/TextComplexityAnalyzerCM/text_complexity_analyzer_cm/pipes/negative_expression_tagger.py

 
Classes
       
builtins.object
NegativeExpressionTagger

 
class NegativeExpressionTagger(builtins.object)
    NegativeExpressionTagger(nlp, language: str = 'es') -> None
 
This tagger has the task to find all verb phrases in a document. It needs to go after the 'Parser' pipeline component.
 
  Methods defined here:
__call__(self, doc: spacy.tokens.doc.Doc) -> spacy.tokens.doc.Doc
This method will find all negation expressions and store them in an iterable.
 
Parameters:
doc(Doc): A Spacy document.
__init__(self, nlp, language: str = 'es') -> None
This constructor will initialize the object that tags verb phrases.
 
Parameters:
nlp: The Spacy model to use this tagger with.
language: The language that this pipeline will be used in.
 
Returns:
None.

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
name = 'negative expression tagger'

 
Functions
       
negation_expressions_getter(doc: spacy.tokens.doc.Doc) -> List[spacy.tokens.span.Span]
Function that returns the negative expressions as a list of Spacy Spans.
 
Parameters:
doc(Doc): A spacy doc containing the text.
 
Returns:
List[Span]: A list of spans that represent the negation expressions.

 
Data
        ACCEPTED_LANGUAGES = {'es': 'es_core_news_lg'}
List = typing.List