Extends the base FeatureGenerator class, by providing basic
checking/functioning for language-specific feature processes. This way,
this class can be inhereted and extended for feature categories that can
only correspond to a particular language specified upon the
initialization of the object
|
__init__(self,
lang)
In order to initialize a language-specific feature generator, the
language needs to be instantiatied as a class variable |
source code
|
|
list(sentence.parallelsentence.ParallelSentence)
|
|
|
add_features_batch_xml(self,
filename_in,
filename_out) |
source code
|
|
|
|
|
|
|
get_features_src(self,
simplesentence,
parallelsentence)
Function that falls back to the general simple sentence feature
generation, only if the language is supported by the feature
generator It receives a source simple sentence and returns a list of
source features. |
source code
|
|
|
|
|
get_features_tgt(self,
simplesentence,
parallelsentence)
Function that falls back to the general simple sentence feature
generation, only if the language is supported by the feature
generator It receives a target simple sentence and returns a list of
target features. |
source code
|
|
Inherited from featuregenerator.FeatureGenerator :
add_features_parallelsentence ,
add_features_simplesentence ,
add_features_src ,
add_features_tgt ,
get_annotation_name ,
get_features_parallelsentence ,
process_dataset
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|