Package miopia :: Package analyzer :: Package counter :: Module UnGrammaticalCounter :: Class UnGrammaticalCounter
[hide private]
[frames] | no frames]

Class UnGrammaticalCounter

source code

       object --+        
                |        
  Counter.Counter --+    
                    |    
RawCounter.RawCounter --+
                        |
                       UnGrammaticalCounter

This counter counts some ungrammatical phenomena thta may be present in a text.

Instance Methods [hide private]
 
__init__(self, ftc)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
raw_processing(self, list_text_info) source code
 
_count(self, list_text_info) source code

Inherited from RawCounter.RawCounter (private): _filter

Inherited from Counter.Counter: count, file_id, get_feature_type_configuration, name_from_id

Inherited from Counter.Counter (private): _id_of_feature

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  REPLICATIONS = 'REPLICATIONS'
  HASHTAGS = 'HASHTAGS'
  WORDS_CAPILATISED = 'WORDS_CAPITALISED'

Inherited from Counter.Counter: BINARY, TOTAL

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, ftc)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
Overrides: object.__init__

raw_processing(self, list_text_info)

source code 
Overrides: RawCounter.RawCounter.raw_processing

_count(self, list_text_info)

source code 
Parameters:
  • list_text_info - A list of TextInfo objects
Overrides: RawCounter.RawCounter._count