summaryrefslogtreecommitdiff
path: root/klm/alone/just_vocab.cc
blob: 35aea5edde1c494e9a651155fa21553298c7e488 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "alone/read.hh"
#include "util/file_piece.hh"

#include <iostream>

int main() {
  util::FilePiece f(0, "stdin", &std::cerr);
  while (true) {
    try {
      alone::JustVocab(f, std::cout);
    } catch (const util::EndOfFileException &e) { break; }
    std::cout << '\n';
  }
}