commit | ca3a52ea05d6c4b5cea6ee03a95488397e1c517a | [log] [tgz] |
---|---|---|
author | Marc Kupietz <kupietz@ids-mannheim.de> | Tue Jun 05 14:16:23 2018 +0200 |
committer | Marc Kupietz <kupietz@ids-mannheim.de> | Tue Jun 05 14:16:23 2018 +0200 |
tree | 119161dfe8e038a7c9f37889ebfef793704339a1 | |
parent | 678185d14541669bb2fea3b00a4f4d7addaea411 [diff] [blame] |
collocatordb: export get_word to C
diff --git a/collocatordb.cc b/collocatordb.cc index ba6c138..bf75f76 100644 --- a/collocatordb.cc +++ b/collocatordb.cc
@@ -723,6 +723,10 @@ db->get_collocators(w1); } + const char *get_word(COLLOCATORS *db, uint32_t w) { + return db->getWord(w).c_str(); + } + const char *get_collocators_as_json(COLLOCATORS *db, uint32_t w1) { return strdup(db->collocators2json(db->get_collocators(w1)).c_str()); }