Revision ffecdde8a4da237dcdbffc19e11316e439d53043 authored by Vesa Siivola on 30 January 2023, 07:22:54 UTC, committed by GitHub on 30 January 2023, 07:22:54 UTC
2 parent s 0d1f72d + d0a5443
Raw File
TreeGramArpaReader.hh
// Routines for reading and writing arpa format files from and to the
// internal prefix tree format.
#ifndef TREEGRAMARPAREADER_HH
#define TREEGRAMARPAREADER_HH

#include "TreeGram.hh"
#include <stdio.h>

class TreeGramArpaReader {
public:
  void read(FILE *file, TreeGram *tree_gram, bool add_missing_unigrams = false);
  void write(FILE *file, TreeGram *tree_gram,
             std::string field_separator = " ");
  void write_interpolated(FILE *file, TreeGram *treegram,
                          std::string field_separator = " ");
};

#endif /* TREEGRAMARPAREADER_HH */
back to top