diff options
author | Chris Dyer <cdyer@cs.cmu.edu> | 2011-11-21 20:41:09 -0500 |
---|---|---|
committer | Chris Dyer <cdyer@cs.cmu.edu> | 2011-11-21 20:41:09 -0500 |
commit | 5999f21885b3296026ed551a0e800b7327224f88 (patch) | |
tree | 9bd627279cf89ff2fa34a0c2fa701fa318ec3184 /decoder | |
parent | 2a823f85e0a027db0bd9691c1653c3954af5b8ca (diff) |
make it possible to build with an earlier version of boost
Diffstat (limited to 'decoder')
-rw-r--r-- | decoder/ff_wordset.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/decoder/ff_wordset.h b/decoder/ff_wordset.h index 643097ef..7c9a3fb7 100644 --- a/decoder/ff_wordset.h +++ b/decoder/ff_wordset.h @@ -3,7 +3,7 @@ #include "ff.h" -#include <boost/unordered/unordered_set.hpp> +#include <tr1/unordered_set> #include <boost/algorithm/string.hpp> #include <vector> @@ -43,7 +43,7 @@ class WordSet : public FeatureFunction { void* context) const; private: - static void loadVocab(const std::string& vocabFile, boost::unordered_set<WordID>* vocab) { + static void loadVocab(const std::string& vocabFile, std::tr1::unordered_set<WordID>* vocab) { std::ifstream file; std::string line; @@ -105,7 +105,7 @@ class WordSet : public FeatureFunction { int fid_; bool oovMode_; - boost::unordered_set<WordID> vocab_; + std::tr1::unordered_set<WordID> vocab_; }; #endif |