summaryrefslogtreecommitdiff
path: root/klm/alone/vocab.hh
diff options
context:
space:
mode:
authorKenneth Heafield <github@kheafield.com>2012-10-22 14:04:27 +0100
committerKenneth Heafield <github@kheafield.com>2012-10-22 14:04:27 +0100
commit0ff82d648446645df245decc1e9eafad304eb327 (patch)
tree0806d429e4f12b672fd6d0461ba8165679bf424d /klm/alone/vocab.hh
parent5f98fe5c4f2a2090eeb9d30c030305a70a8347d1 (diff)
Update search, make it compile
Diffstat (limited to 'klm/alone/vocab.hh')
-rw-r--r--klm/alone/vocab.hh34
1 files changed, 0 insertions, 34 deletions
diff --git a/klm/alone/vocab.hh b/klm/alone/vocab.hh
deleted file mode 100644
index 3ac0f542..00000000
--- a/klm/alone/vocab.hh
+++ /dev/null
@@ -1,34 +0,0 @@
-#ifndef ALONE_VOCAB__
-#define ALONE_VOCAB__
-
-#include "lm/word_index.hh"
-#include "util/string_piece.hh"
-
-#include <boost/functional/hash/hash.hpp>
-#include <boost/unordered_map.hpp>
-
-#include <string>
-
-namespace lm { namespace base { class Vocabulary; } }
-
-namespace alone {
-
-class Vocab {
- public:
- explicit Vocab(const lm::base::Vocabulary &backing);
-
- const std::pair<const std::string, lm::WordIndex> &FindOrAdd(const StringPiece &str);
-
- const std::pair<const std::string, lm::WordIndex> &EndSentence() const { return end_sentence_; }
-
- private:
- typedef boost::unordered_map<std::string, lm::WordIndex> Map;
- Map map_;
-
- const lm::base::Vocabulary &backing_;
-
- const std::pair<const std::string, lm::WordIndex> &end_sentence_;
-};
-
-} // namespace alone
-#endif // ALONE_VCOAB__