Cheshire3 Object Model: Class ExactProximityExtractor

Module extractor :: Class ExactProximityExtractor

Class ExactProximityExtractor
source code

Object Tree:
           object --+                    
                    |                    
configParser.C3Object --+                
                        |                
    baseObjects.Extractor --+            
                            |            
              SimpleExtractor --+        
                                |        
                 KeywordExtractor --+    
                                    |    
                   ProximityExtractor --+
                                        |
                                       ExactProximityExtractor

Extract exact text with proximity information. For example, to check nestedness/adjacency of elements

Instance Methods

process_string(self, session, data)
Process a raw string, eg from an attribute value or the query.
process_node(self, session, data)
Process a DOM node.
process_eventList(self, session, data)
Process a list of SAX events serialised in C3 internal format.

Inherited from KeywordExtractor: __init__

Inherited from KeywordExtractor (private): _keywordify

Inherited from SimpleExtractor: process_xpathResult

Inherited from SimpleExtractor (private): _mergeHash

Inherited from configParser.C3Object: auth_function, get_config, get_default, get_object, get_path, get_setting, log_function, unauth_function, unlog_function

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


Class Variables

Inherited from configParser.C3Object: configStore, defaults, functionLogger, id, name, objectType, objects, parent, paths, permissionHandlers, settings, subConfigs, unresolvedObjects

Inherited from object: __class__


Method Details

process_string(self, session, data)

source code 
Process a raw string, eg from an attribute value or the query.
Overrides: ProximityExtractor.process_string

process_node(self, session, data)

source code 
Process a DOM node.
Overrides: ProximityExtractor.process_node

process_eventList(self, session, data)

source code 
Process a list of SAX events serialised in C3 internal format.
Overrides: ProximityExtractor.process_eventList