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

Class Counter

source code

object --+
         |
        Counter
Known Subclasses:

Abstract class which provides the basic operations for the rest of the Counters.

Instance Methods [hide private]
 
__init__(self, ftc, weighting_factor='BINARY')
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
get_feature_type_configuration(self) source code
 
_id_of_feature(self, text_id, position, name)
Append to the name of the feature a value of a category of FeatureSemanticProperty
source code
 
name_from_id(self, feature_id) source code
 
file_id(self, feature_id) source code
 
count(self, list_text_info) source code

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

Class Variables [hide private]
  BINARY = 'BINARY'
  TOTAL = 'TOTAL'
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, ftc, weighting_factor='BINARY')
(Constructor)

source code 

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

Parameters:
Overrides: object.__init__

_id_of_feature(self, text_id, position, name)

source code 

Append to the name of the feature a value of a category of FeatureSemanticProperty

Parameters:
  • str_name_feature - The basic name of the feature
  • value_semantic_property - A value of a category specified at FeatureSemanticProperty

name_from_id(self, feature_id)

source code 
Parameters:
  • feature_id - A tuple (textid, position,name) which identifies a feature in a file and in a graph. @return The name of the feature.

file_id(self, feature_id)

source code 
Parameters:
  • feature_id - A tuple (textid, position,name) which identifies a feature in a file and in a graph. @return The file identifier where the current feature was found.

count(self, list_text_info)

source code 
Parameters:
  • list_text_info - A list of TextInfo objects @return The collection of of features that were found in list_text_info