Cambridge SMT System
main.createssgrammar.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 MAIN_CREATESSGRAMMAR_H
22 #define MAIN_CREATESSGRAMMAR_H
23 
24 namespace ucam {
25 namespace util {
26 extern bool user_check_ok;
27 extern const bool detailed;
28 }
29 }
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"
48 
50 
51 #include "constants-fsttools.hpp"
52 #include "constants-hifst.hpp"
54 
55 #include "params.hpp"
56 #include "tokenizer.osr.hpp"
57 #include "wordmapper.hpp"
58 
61 #include "fstio.hpp"
62 #include "fstutils.hpp"
63 
64 #include <defs.grammar.hpp>
65 #include <defs.ssgrammar.hpp>
66 #include <defs.cykparser.hpp>
67 
68 #include <data.stats.hpp>
69 #include <data.grammar.hpp>
70 
71 #include <data.ssgrammar.hpp>
72 #include <data.cykparser.hpp>
74 
75 #include <task.loadwordmap.hpp>
76 #include <task.grammar.hpp>
77 #include <task.prepro.hpp>
79 #include <task.ssgrammar.hpp>
80 
81 #endif
Handles simple wildcard expansion for strings.
Contains convenience functions to write and read fsts.
Stream wrapper for pipe/text/compressed files.
Relative to Stats across the pipeline.
Contains patterns to instance-patterns implementation.
Contains structures and classes for GrammarData.
Lower casing/Tokenization/Detokenization not available for open source release.
Provides smarter assert methods.
Interfaces with basic methods for iteration.
Describes class GrammarTask.
const bool detailed
Contains structures and classes for GrammarData.
Utilites to extract vocabulary, pseudo-determinize lattices and build substring transducers.
Headers for standalone shared library.
Convenience functions to parse parameters from a string.
Wrapper around WordMapper loader.
Contains implementation for sentence-specific grammar task.
Contains definitions for cykparser data and task.
Contains definitions for cykparser data and task.
General functions.
Contains definitions for sentence-specific grammar data and task.
Handles different type of integer ranges.
class WordMapper
Contains sentence-specific grammar data.
Describes class PreProTask, which preprocesses (tokenizes and maps to integers with WordMapper) sourc...
General typedefs, defines...
Contains wrapper class RegistryPO, which uses boost::program_options to parse parameters, and provides methods to access them.
Data object for hifst or related tools.
Lexicographic stdarc registering.
Definition: bleu.hpp:14
All included standard headers, boost headers,...
To initialize boost parameter options for createssgrammar tool.