summaryrefslogtreecommitdiff
path: root/klm/alone/just_vocab.cc
diff options
context:
space:
mode:
Diffstat (limited to 'klm/alone/just_vocab.cc')
-rw-r--r--klm/alone/just_vocab.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/klm/alone/just_vocab.cc b/klm/alone/just_vocab.cc
new file mode 100644
index 00000000..35aea5ed
--- /dev/null
+++ b/klm/alone/just_vocab.cc
@@ -0,0 +1,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';
+ }
+}