[parser] moving tagger function pointer definition to a separate header so it can be used for other models

This commit is contained in:
Al
2017-03-06 21:42:06 -05:00
parent cc58ec9db2
commit 5c1c1ae0f2
2 changed files with 6 additions and 1 deletions

View File

@@ -78,7 +78,7 @@ bool averaged_perceptron_trainer_train_example(averaged_perceptron_trainer_t *se
cstring_array *features,
cstring_array *prev_tag_features,
cstring_array *prev2_tag_features,
ap_tagger_feature_function feature_function,
tagger_feature_function feature_function,
tokenized_string_t *tokenized,
cstring_array *labels
);

5
src/tagger.h Normal file
View File

@@ -0,0 +1,5 @@
#include "string_utils.h"
#include "tokens.h"
// Arguments: tagger, context, tokenized str, index
typedef bool (*tagger_feature_function)(void *, void *, tokenized_string_t *, uint32_t);