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

 
Classes
       
builtins.object
FeatureCounter

 
class FeatureCounter(builtins.object)
    FeatureCounter(language: str = 'es') -> None
 

 
  Methods defined here:
__call__(self, doc: spacy.tokens.doc.Doc) -> spacy.tokens.doc.Doc
This method will calculate the the 'counter_function' on a text. Said function will be handle different counting.
 
Parameters:
doc(Doc): A Spacy document.
__init__(self, language: str = 'es') -> None
This constructor will initialize the object that counts a certain feature specified by a function. It is the last pipeline component.
 
Parameters:
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 = 'feature counter'

 
Functions
       
tee(iterable, n=2, /)
Returns a tuple of n independent iterators.

 
Data
        ACCEPTED_LANGUAGES = {'es': 'es_core_news_lg'}