Package nltk_lite :: Package tag :: Module brill :: Class ProximateWordsRule
[hide private]
[frames] | no frames]

Class ProximateWordsRule

source code

     object --+            
              |            
yaml.YAMLObject --+        
                  |        
         BrillRuleI --+    
                      |    
    ProximateTokensRule --+
                          |
                         ProximateWordsRule

A rule which examines the base types of nearby tokens.


See Also:
ProximateTokensRule for details., ProximateWordsTemplate, which generates these rules.
Nested Classes [hide private]

Inherited from yaml.YAMLObject: __metaclass__, yaml_dumper, yaml_loader

Instance Methods [hide private]

Inherited from ProximateTokensRule: __eq__, __hash__, __init__, __repr__, __str__, applies, apply_at, original_tag, replacement_tag

Inherited from BrillRuleI: apply_to

Inherited from object: __delattr__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__

Class Methods [hide private]

Inherited from ProximateTokensRule: from_yaml, to_yaml

Static Methods [hide private]
any
extract_property(token)
Returns: The given token's text.
source code
Class Variables [hide private]
  PROPERTY_NAME = 'text'
  yaml_tag = '!ProximateWordsRule'

Inherited from yaml.YAMLObject: yaml_flow_style

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

extract_property(token)
Static Method

source code 

Returns some property characterizing this token, such as its base lexical item or its tag.

Each implentation of this method should correspond to an implementation of the method with the same name in a subclass of ProximateTokensTemplate.

Returns: any
The given token's text.
Overrides: ProximateTokensRule.extract_property