diff options
Diffstat (limited to 'python/cdec/sa/strmap.h')
-rw-r--r-- | python/cdec/sa/strmap.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/python/cdec/sa/strmap.h b/python/cdec/sa/strmap.h new file mode 100644 index 00000000..a218a4c0 --- /dev/null +++ b/python/cdec/sa/strmap.h @@ -0,0 +1,22 @@ +#ifndef _STRMAP_H_ +#define _STRMAP_H_ + +#ifdef __cplusplus + extern "C" { +#else + typedef struct StrMap StrMap; /* dummy type to stand in for class */ +#endif + +struct StrMap; + +StrMap* stringmap_new(); +void stringmap_delete(StrMap *vocab); +int stringmap_index(StrMap *vocab, char *s); +char* stringmap_word(StrMap *vocab, int i); + +#ifdef __cplusplus + } +#endif + + +#endif |