Classes | Namespaces | Typedefs | Functions

OpenFstInterop.hpp File Reference

Go to the source code of this file.

Classes

struct  opennwa::WaliKey
 Structure for holding Wali keys. More...
struct  opennwa::FstKey
 Structure for holding OpenFST keys. More...

Namespaces

namespace  opennwa
 

This file defines forward declarations for various useful NWA-related types.


Typedefs

typedef std::map< FstKey, WaliKey > opennwa::fst_to_wali_key_map
 Maps a known OpenFST key to the corresponding Wali key.
typedef std::map< WaliKey, FstKey > opennwa::wali_to_fst_key_map
 Maps a known Wali key to the corresponding OpenFST key.
typedef std::pair
< fst_to_wali_key_map,
wali_to_fst_key_map > 
opennwa::fst_wali_key_maps
 Holds bidirectional mappings between Wali and OpenFST keys, to allow bidirectional lookup.

Functions

StdVectorFst opennwa::internal_only_nwa_to_fst (NwaRefPtr nwa, fst_wali_key_maps *maps=NULL)
 Given an NWA 'nwa' with no call or return transitions, converts 'nwa' to an OpenFST acceptor.
NwaRefPtr opennwa::fst_to_nwa (fst::StdExpandedFst const &fst, fst_wali_key_maps &maps, std::string node_prefix="")
 Converts an OpenFST acceptor to an NWA.
NwaRefPtr opennwa::minimize_internal_nwa (NwaRefPtr internal_nwa, std::string node_prefix="")
 Given an NWA 'internal_nwa' without call or return transitions, treat the NWA as a standard FA and minimize it.
NwaRefPtr opennwa::determinize_internal_nwa (NwaRefPtr internal_nwa, std::string node_prefix="")
 Given an NWA 'internal_nwa' without call or return transitions, treat the NWA as a standard FA and determinize it using OpenFST.