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

Class DependencyTripletsCounter

source code

                   object --+        
                            |        
              Counter.Counter --+    
                                |    
SintacticCounter.SintacticCounter --+
                                    |
                                   DependencyTripletsCounter

This Counter is responsible of counting dependency triplets present in a SentimentDependencyGraph

Instance Methods [hide private]
 
__init__(self, ftc, back_off, stop_words=set([]))
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
_count_graph(self, textid, dg, address) source code

Inherited from SintacticCounter.SintacticCounter (private): _count

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]

Inherited from Counter.Counter: BINARY, TOTAL

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, ftc, back_off, stop_words=set([]))
(Constructor)

source code 

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

Parameters:
Overrides: object.__init__

_count_graph(self, textid, dg, address)

source code 
Parameters:
  • textid - A string. The identifier of the text.
  • dg - An instance of SentimentDependencyGraph
  • address - An integer. The node identifier in the graph.
Overrides: SintacticCounter.SintacticCounter._count_graph