Package miopia :: Package adapter :: Module Feature :: Class FeatureTypeConfiguration
[hide private]
[frames] | no frames]

Class FeatureTypeConfiguration

source code

object --+
         |
        FeatureTypeConfiguration

FeatureTypeConfiguration specifies the configuration for a src.miope.adapter.Adapter

Instance Methods [hide private]
 
__init__(self, back_off_head=None, back_off_dependent=None, **kwargs)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
get_back_off_head(self)
Returns: The type of back off for the head of node a dependency triplet
source code
 
get_back_off_dependent(self)
Returns: The type of back off for the dependent node of a dependency triplet
source code
 
get_add_dependency_type(self)
Returns: A boolean indicating if the src.miope.adapter.DependencyTripletAdapter must include or not dependency types
source code
 
get_n_gram(self)
Returns: The len for ngram's for a src.miope.adapter.NGramAdapter
source code
 
get_n_gram_back_off(self)
Returns: The type of back off for ngram's of a src.miope.adapter.NGramAdapter
source code
 
get_semantic_property(self) source code
 
get_weka_data_type(self) source code
 
__str__(self, *args, **kwargs)
str(x)
source code
 
__hash__(self)
hash(x)
source code
 
__eq__(self, other) source code

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

Class Variables [hide private]
  DELIMITER_CONFIGURATION = '|'
  HEAD_BACK_OFF_DELIMITER = 'HBOFF'
  DEPENDENT_BACK_OFF_DELIMITER = 'DBOFF'
  N_GRAM_DELIMITER = 'N_GRAM'
  N_GRAM_BACK_OFF_DELIMITER = 'N_GRAM_BACK_OFF'
  ADD_DEPENDENCY_TYPE_DELIMITER = 'DP_TYPE'
  SEMANTIC_PROPERTY_DELIMITER = 'SEMANTIC_PRO'
  DEFAULT_N_GRAM_SIZE = '1'
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, back_off_head=None, back_off_dependent=None, **kwargs)
(Constructor)

source code 

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

Parameters:
  • **kwargs - ngram, n_gram_back_off, add_dependency_type, semantic_property
  • ngram - {"1","2","3",...}
  • n_gram_back_off - A type back_off of FeatureLevelBackOff
  • add_dependency_type - {True,False}. If not included, taking False by default
  • semantic_property - A FeatureSemanticProperty
Overrides: object.__init__

get_back_off_head(self)

source code 
Returns:
The type of back off for the head of node a dependency triplet

get_back_off_dependent(self)

source code 
Returns:
The type of back off for the dependent node of a dependency triplet

get_add_dependency_type(self)

source code 
Returns:
A boolean indicating if the src.miope.adapter.DependencyTripletAdapter must include or not dependency types

get_n_gram(self)

source code 
Returns:
The len for ngram's for a src.miope.adapter.NGramAdapter

get_n_gram_back_off(self)

source code 
Returns:
The type of back off for ngram's of a src.miope.adapter.NGramAdapter

__str__(self, *args, **kwargs)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

__hash__(self)
(Hashing function)

source code 

hash(x)

Overrides: object.__hash__
(inherited documentation)