[features] Adding counter/bag-of-words representation of features

This commit is contained in:
Al
2015-09-08 00:17:26 -07:00
parent 49d389b9d8
commit ae7e30634b
2 changed files with 23 additions and 5 deletions

View File

@@ -1,18 +1,19 @@
#ifndef FEATURES_H
#define FEATURES_H
#include <stdlib.h>
#include <stdarg.h>
#include "collections.h"
#include "string_utils.h"
#define FEATURE_SEPARATOR_CHAR "|"
// Add feature to array
void feature_array_add(cstring_array *features, size_t count, ...);
// Add feature count to dictionary
bool feature_counts_update(khash_t(str_uint32) *features, char *feature, int count);
#endif