Trees | Indices | Help |
|
---|
|
object --+ | featuregenerator.FeatureGenerator --+ | Preprocessor
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
|
|||
Inherited from |
|
x.__init__(...) initializes x; see help(type(x)) for signature
|
Gets a source SimpleSentence and (optionally) its corresponding Parallelsentence and returns a SimpleSentence with the generated features Operates as a wrapper around the get_features_src method, which returns a dictionary with the generated features. From it we receive the dictionary, we duplicate the source SimpleSentence object and we return a proper source SimpleSentence object containing the generated features. @param simplesentence: The source sentence of a ParallelSentence @type simplesentence: sentence.sentence.SimpleSentence @param parallelsentence: The parallelsentence containing the given source sentence. Can be omitted if the subclassed feature generator doesn't require the parallelsentence in order to deliver source features @type parallelsentence: sentence.parallelsentence.ParallelSentence @rtype: sentence.sentence.SimpleSentence @return: A source SimpleSentence object similar to the one given, but now containing the generated features.
|
Gets a target SimpleSentence and (optionally) its corresponding Parallelsentence and returns a SimpleSentence with the generated features Operates as a wrapper around the get_features_src method, which returns a dictionary with the generated features. From it we receive the dictionary, we duplicate the target SimpleSentence object and we return a proper target SimpleSentence object containing the generated features. @param simplesentence: The target sentence of a ParallelSentence @type simplesentence: sentence.sentence.SimpleSentence @param parallelsentence: The parallelsentence containing the given target sentence. Can be omitted if the subclassed feature generator doesn't require the parallelsentence in order to deliver target features @type parallelsentence: sentence.parallelsentence.ParallelSentence @rtype: sentence.sentence.SimpleSentence @return: A target SimpleSentence object similar to the one given, but now containing the generated features.
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Jul 18 11:46:13 2014 | http://epydoc.sourceforge.net |