gateplugin-LearningFramework icon indicating copy to clipboard operation
gateplugin-LearningFramework copied to clipboard

Add feature functions that can depend on the target

Open johann-petrak opened this issue 7 years ago • 0 comments

Allow features to depend on (previous) targets. This means we should be able to add something like <CLASS>-2</CLASS> to an ATTRIBUTE or ATTRIBUTELIST declaration and then use the value that results from combining the actual value and the class value. For attributelist declarations the maximum effective class index must always be to the left of the current index, e.g. for a list going from -2 to +2 we either have to refer to class index -3 or if e.g. we refer to class index -1 we only generate the feature for indices -2 to 0.

Initially the actual feature function will be implicit: just concatenate the value and the class using a special concat symbol.

Actual feature functions will need to get implemented separately, ideally we could do something like <FUNCTION>the.java.class.path.of.a.Class</FUNCTION> where that class implements a specific interface for calculating something (the value, and maybe also a feature specification: needs to implement getValue(featureValue,targetValue) and getFeatureSpec()).

johann-petrak avatar Jul 24 '17 08:07 johann-petrak