[parser] moving tagger function pointer definition to a separate header so it can be used for other models
This commit is contained in:
@@ -78,7 +78,7 @@ bool averaged_perceptron_trainer_train_example(averaged_perceptron_trainer_t *se
|
|||||||
cstring_array *features,
|
cstring_array *features,
|
||||||
cstring_array *prev_tag_features,
|
cstring_array *prev_tag_features,
|
||||||
cstring_array *prev2_tag_features,
|
cstring_array *prev2_tag_features,
|
||||||
ap_tagger_feature_function feature_function,
|
tagger_feature_function feature_function,
|
||||||
tokenized_string_t *tokenized,
|
tokenized_string_t *tokenized,
|
||||||
cstring_array *labels
|
cstring_array *labels
|
||||||
);
|
);
|
||||||
|
|||||||
5
src/tagger.h
Normal file
5
src/tagger.h
Normal 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);
|
||||||
Reference in New Issue
Block a user