Cambridge SMT System
main.alilats2splats.hpp
Go to the documentation of this file.
1 // Licensed under the Apache License, Version 2.0 (the "License");
2 // you may not use these files except in compliance with the License.
3 // You may obtain a copy of the License at
4 //
5 // http://www.apache.org/licenses/LICENSE-2.0
6 //
7 // Unless required by applicable law or agreed to in writing, software
8 // distributed under the License is distributed on an "AS IS" BASIS,
9 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10 // See the License for the specific language governing permissions and
11 // limitations under the License.
12 
13 // Copyright 2012 - Gonzalo Iglesias, Adrià de Gispert, William Byrne
14 
21 #ifndef ALILATS2SPLATS_H
22 #define ALILATS2SPLATS_H
23 
24 namespace ucam {
25 namespace util {
26 extern bool user_check_ok;
27 extern const bool detailed;
28 }
29 } // externals
30 
32 #include "global_incls.hpp"
33 #include "custom_assert.hpp"
34 #include "global_decls.hpp"
35 #include "global_funcs.hpp"
36 
37 #include <fst/fstlib.h>
38 #include <fst/script/print.h>
39 
40 #include "logger.hpp"
41 
42 #include "szfstream.hpp"
43 
44 #include "registrypo.hpp"
45 #include "taskinterface.hpp"
46 #include "range.hpp"
47 #include "addresshandler.hpp"
49 
50 #include <constants-fsttools.hpp>
51 #include <constants-hifst.hpp>
52 
54 
55 #include "params.hpp"
56 
57 //KenLM
58 #define KENLM_MAX_ORDER 6
59 #include "lm/model.hh"
60 
64 
65 #include "tropical-sparse-tuple-weight.h"
66 #include "tropical-sparse-tuple-weight-decls.h"
68 
70 
71 #include "fstio.hpp"
72 #include "fstutils.hpp"
75 #include "fstutils.mapper.hpp"
76 #include "fstutils.multiunion.hpp"
77 #include "fstutils.ftcompose.hpp"
78 
79 #include <params.hpp>
80 #include <data.lm.hpp>
81 
82 #include <task.readfst.hpp>
83 #include <task.writefst.hpp>
84 
85 #include <data.stats.hpp>
87 
88 #include <task.loadwordmap.hpp>
89 #include <task.loadlm.hpp>
92 #include <task.applylm.hpp>
94 
95 #endif
Handles simple wildcard expansion for strings.
Data object for alilats to sparse weight lats binary.
Convenience functors/functions for lexicographic<tropical,tropical> semiring.
Contains convenience functions to write and read fsts.
Stream wrapper for pipe/text/compressed files.
Relative to Stats across the pipeline.
Implementation of a language model application task.
Implementation of different type of compositions (i.e. failure transitions)
Convenience functions for tropical sparse vector weight.
Provides smarter assert methods.
Interfaces with basic methods for iteration.
Implementations of multiple fst unions.
Implementation of a Fst writer taking the fst from data object.
Contains task that dumps nbest and feature file.
Implementation of a language model task.
const bool detailed
Contains implementation of ApplyLanguageModelOnTheFly.
Implements a class that loads the grammar sparseweight flower lattice and stores a pointer on the dat...
Implements the task of creating sparse vector weight lattices – contains feature weight contribution...
Utilites to extract vocabulary, pseudo-determinize lattices and build substring transducers.
Headers for standalone shared library.
Implementation of a language model data structure using kenlm.
Convenience functions to parse parameters from a string.
Implementation of a Fst reader to data structure.
Wrapper around WordMapper loader.
General functions.
Generalized weight mapper functor.
Convenience functors that allow transparent handling for weights within hifst.
Handles different type of integer ranges.
To initialize boost parameter options.
General typedefs, defines...
Multiepsilon composition.
Contains wrapper class RegistryPO, which uses boost::program_options to parse parameters, and provides methods to access them.
Lexicographic stdarc registering.
Definition: bleu.hpp:14
All included standard headers, boost headers,...