Cambridge SMT System
|
Unit testing: hifst lattice-building. More...
#include <openfst.h>
#include <googletesting.h>
#include "main.custom_assert.hpp"
#include "main.logger.hpp"
#include "params.hpp"
#include "wordmapper.hpp"
#include "addresshandler.hpp"
#include "taskinterface.hpp"
#include "tropical-sparse-tuple-weight.h"
#include "tropical-sparse-tuple-weight-decls.h"
#include "tropical-sparse-tuple-weight-funcs.h"
#include "lexicographic-tropical-tropical-incls.h"
#include "lexicographic-tropical-tropical-funcs.h"
#include "tropical-sparse-tuple-weight.makeweight.h"
#include "fstio.hpp"
#include "fstutils.hpp"
#include "fstutils.mapper.hpp"
#include "fstutils.multiunion.hpp"
#include "lm/model.hh"
#include "fstutils.multiepsiloncompose.hpp"
#include "defs.grammar.hpp"
#include "defs.ssgrammar.hpp"
#include "defs.cykparser.hpp"
#include "data.stats.hpp"
#include "data.grammar.hpp"
#include "data.lm.hpp"
#include "fstutils.applylmonthefly.hpp"
#include "data.ssgrammar.hpp"
#include "data.cykparser.hpp"
#include "task.grammar.hpp"
#include "task.ssgrammar.hpp"
#include "task.cykparser.hpp"
#include "task.loadlm.hpp"
#include "task.hifst.hpp"
#include "data-main.hifst.hpp"
Go to the source code of this file.
Classes | |
class | HifstTest |
hifst test class for google test fixtures More... | |
Functions | |
TEST_F (HifstTest, basic_translation) | |
Basic test for HifstTask. More... | |
TEST_F (HifstTest, basic_translation2) | |
Basic test for HifstTask. More... | |
TEST_F (HifstTest, basic_translation3) | |
Basic test for HifstTask. More... | |
TEST_F (HifstTest, alignment) | |
Basic test for HifstTask. More... | |
TEST (HifstTest2, localconditions) | |
TEST (HifstTest2, expandednumstatesrtn) | |
Testing the class ExpandedNumStatesRTN. Given a list of FSAs, it estimates the number of states of the equivalent expanded FSA. More... | |
TEST (HifstTest2, replacefstbyarc) | |
TEST (HifstTest2, manualreplacefstbyarc) | |
TEST (HifstTest2, optimize) | |
int | main (int argc, char **argv) |
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 523 of file hifst.task.hifst.gtest.cpp.
TEST | ( | HifstTest2 | , |
localconditions | |||
) |
e.g. Consider categories S=1,X=2,V=3,M=4 The cyk cell is defined by (category,x,y) x is the position; for a sentence of n words, 0..n-1 y is the word_span-1; for a sentence of n words, 0..n-1 At each cell you will be building an FSA. The list of FSAs describe an RTN associated to the cyk grid. The expansion of this RTN should have 'numstates' states You want to know whether a particular cell lattice qualifies for local pruning: check (cc,y+1,numstates) and find out the weight.
No local pruning for category M...
Only spanning 19 words...
Definition at line 337 of file hifst.task.hifst.gtest.cpp.
TEST | ( | HifstTest2 | , |
expandednumstatesrtn | |||
) |
Testing the class ExpandedNumStatesRTN. Given a list of FSAs, it estimates the number of states of the equivalent expanded FSA.
Definition at line 392 of file hifst.task.hifst.gtest.cpp.
TEST | ( | HifstTest2 | , |
replacefstbyarc | |||
) |
Definition at line 414 of file hifst.task.hifst.gtest.cpp.
TEST | ( | HifstTest2 | , |
manualreplacefstbyarc | |||
) |
Definition at line 428 of file hifst.task.hifst.gtest.cpp.
TEST | ( | HifstTest2 | , |
optimize | |||
) |
Definition at line 478 of file hifst.task.hifst.gtest.cpp.
TEST_F | ( | HifstTest | , |
basic_translation | |||
) |
Basic test for HifstTask.
Definition at line 173 of file hifst.task.hifst.gtest.cpp.
TEST_F | ( | HifstTest | , |
basic_translation2 | |||
) |
Basic test for HifstTask.
Definition at line 198 of file hifst.task.hifst.gtest.cpp.
TEST_F | ( | HifstTest | , |
basic_translation3 | |||
) |
Basic test for HifstTask.
Definition at line 223 of file hifst.task.hifst.gtest.cpp.
TEST_F | ( | HifstTest | , |
alignment | |||
) |
Basic test for HifstTask.
Definition at line 282 of file hifst.task.hifst.gtest.cpp.