summaryrefslogtreecommitdiff
path: root/utils/tdict.h
diff options
context:
space:
mode:
authorChris Dyer <redpony@gmail.com>2014-02-09 20:50:41 -0500
committerChris Dyer <redpony@gmail.com>2014-02-09 20:50:41 -0500
commit31b5d03c75b5d07afb54251e39fcf3e610d16141 (patch)
treed73389afbecf8fb1ad13c7d7b18b2579002e4f0b /utils/tdict.h
parent3798fb9a43c27c3dfe0db5ee0dd0ef04bf5ee5f5 (diff)
adaptive hope-fear learner
Diffstat (limited to 'utils/tdict.h')
-rw-r--r--utils/tdict.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/tdict.h b/utils/tdict.h
index 03afc2e6..bb19ecd5 100644
--- a/utils/tdict.h
+++ b/utils/tdict.h
@@ -9,7 +9,7 @@
struct TD {
static WordID end(); // next id to be assigned; [begin,end) give the non-reserved tokens seen so far
- static void ConvertSentence(std::string const& sent, std::vector<WordID>* ids);
+ static void ConvertSentence(std::string const& sent, std::vector<WordID>* ids, unsigned start=0);
static void GetWordIDs(const std::vector<std::string>& strings, std::vector<WordID>* ids);
static std::string GetString(const std::vector<WordID>& str);
static std::string GetString(WordID const* i,WordID const* e);