Sitelet https://github.com/redpony/cdec/tree/master/example_extff
Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

This is an example of an external feature function which is loaded as a dynamically linked library at run time to compute feature functions over derivations in a hypergraph. To load feature external feature functions, you can specify them in your cdec.ini configuration file as follows:

feature_function=External /path/to/libmy_feature.so

Any extra options are passed to the external library.

Note: the build system uses GNU Libtool to create the shared library. This may be placed in a hidden directory called ./libs.