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

Class ScorerCounter

source code

           object --+            
                    |            
      Counter.Counter --+        
                        |        
    RawCounter.RawCounter --+    
                            |    
LexiconCounter.LexiconCounter --+
                                |
                               ScorerCounter

classdocs

Instance Methods [hide private]
 
__init__(self, ftc, preprocessor, lexical_processor, dict_lexicon, name_scoring, lowercase=True)
Constructor
source code
 
_get_values(self, d, textid, initial_position, value) source code

Inherited from RawCounter.RawCounter: raw_processing

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]
  ALL = 'ALL'
  FIRST_MATCH = 'FIRST_MATCH'

Inherited from Counter.Counter: BINARY, TOTAL

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, ftc, preprocessor, lexical_processor, dict_lexicon, name_scoring, lowercase=True)
(Constructor)

source code 

Constructor

Parameters:
  • ftc - An instance of FeatureTypeConfiguration
  • preprocessor - An instance of PreprocessorI
  • lexical_processor - An instance of LexicalProcessor
  • dict_lexicon - A nested dictionary {key:[Category,{key:[ ... ]}]}
  • lowercase - A boolean. True to ignore capitalised characters.
Overrides: object.__init__