/disk4/html/www/moses/doxygen/mosesdecoder/lm/filter/phrase.hh File Reference

#include "util/murmur_hash.hh"
#include "util/string_piece.hh"
#include "util/tokenize_piece.hh"
#include <boost/unordered_map.hpp>
#include <iosfwd>
#include <vector>

Go to the source code of this file.

Classes

class  lm::phrase::Substrings
struct  lm::phrase::Substrings::SentenceRelation
class  lm::phrase::detail::ConditionCommon
class  lm::phrase::Union
class  lm::phrase::Multiple

Namespaces

namespace  lm
namespace  lm::phrase
namespace  lm::phrase::detail

Defines

#define LM_FILTER_PHRASE_METHOD(caps, lower)

Typedefs

typedef uint64_t lm::phrase::Hash

Functions

unsigned int lm::phrase::ReadMultiple (std::istream &in, Substrings &out)
template<class Iterator >
void lm::phrase::detail::MakeHashes (Iterator i, const Iterator &end, std::vector< Hash > &hashes)


Define Documentation

#define LM_FILTER_PHRASE_METHOD ( caps,
lower   ) 

Value:

bool Find##caps(Hash key, const std::vector<unsigned int> *&out) const {\
  Table::const_iterator i(table_.find(key));\
  if (i==table_.end()) return false; \
  out = &i->second.lower; \
  return true; \
}

Definition at line 13 of file phrase.hh.


Generated on Thu Jul 6 00:31:25 2017 for Moses by  doxygen 1.5.9