Skip to content

Commit

Permalink
Remove some misleading comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kpu committed Apr 9, 2014
1 parent 74ffa3f commit df38e0a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lm/read_arpa.hh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ void ReadEnd(util::FilePiece &in);

extern const bool kARPASpaces[256];

// Positive log probability warning.
// Positive log probability warning.
class PositiveProbWarn {
public:
PositiveProbWarn() : action_(THROW_UP) {}
Expand Down Expand Up @@ -58,7 +58,6 @@ template <class Voc, class Weights> void Read1Gram(util::FilePiece &f, Voc &voca
}
}

// Return true if a positive log probability came out.
template <class Voc, class Weights> void Read1Grams(util::FilePiece &f, std::size_t count, Voc &vocab, Weights *unigrams, PositiveProbWarn &warn) {
ReadNGramHeader(f, 1);
for (std::size_t i = 0; i < count; ++i) {
Expand All @@ -67,7 +66,6 @@ template <class Voc, class Weights> void Read1Grams(util::FilePiece &f, std::siz
vocab.FinishedLoading(unigrams);
}

// Return true if a positive log probability came out.
template <class Voc, class Weights> void ReadNGram(util::FilePiece &f, const unsigned char n, const Voc &vocab, WordIndex *const reverse_indices, Weights &weights, PositiveProbWarn &warn) {
try {
weights.prob = f.ReadFloat();
Expand Down

0 comments on commit df38e0a

Please sign in to comment.