|
Cambridge SMT System
|
Unit testing: Various weight makers on different semirings. More...
#include <openfst.h>#include <googletesting.h>#include "main.custom_assert.hpp"#include "main.logger.hpp"#include "params.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 "fstutils.mapper.hpp"#include "task.hifst.makeweights.hpp"
Go to the source code of this file.
Functions | |
| TEST (tropicalsparseweight, makesparseweight) | |
| TEST (tropicalsparseweight, makeweight2) | |
| Generate tuple32 weight from float or another tuple32. More... | |
| TEST (lexicographic, makeweight_stdarc) | |
| Testing MakeWeight functor. More... | |
| TEST (lexicographic, makeweight_lexstdarc) | |
| Testing MakeWeight templated to lexstdarc. More... | |
| TEST (lexicographic, makeweight2_stdarc) | |
| Testing MakeWeight2. More... | |
| TEST (lexicographic, makeweight2_lexstdarc) | |
| Testing MakeWeight2 with LexStdArc. More... | |
| TEST (lexicographic, copyw2tow1_stdarc) | |
| Test Map copy weight2 to weight1 – should do nothing. More... | |
| TEST (lexicographic, copyw2tow1_lexstdarc) | |
| Test copy weight2 to weight1 – effective on lexstdarc. More... | |
| TEST (tropicalsparseweight, makeweighthifst) | |
| TEST (tropicalsparseweight, makeweighthifstMapper) | |
| TEST (lexicographic, makeweighthifst) | |
| TEST (tropicalsparseweight, removeKthWeight) | |
| int | main (int argc, char **argv) |
Unit testing: Various weight makers on different semirings.
Definition in file weights.gtest.cpp.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 295 of file weights.gtest.cpp.
| TEST | ( | tropicalsparseweight | , |
| makesparseweight | |||
| ) |
Definition at line 45 of file weights.gtest.cpp.
| TEST | ( | tropicalsparseweight | , |
| makeweight2 | |||
| ) |
Generate tuple32 weight from float or another tuple32.
Definition at line 54 of file weights.gtest.cpp.
| TEST | ( | lexicographic | , |
| makeweight_stdarc | |||
| ) |
Testing MakeWeight functor.
Definition at line 62 of file weights.gtest.cpp.
| TEST | ( | lexicographic | , |
| makeweight_lexstdarc | |||
| ) |
Testing MakeWeight templated to lexstdarc.
Definition at line 71 of file weights.gtest.cpp.
| TEST | ( | lexicographic | , |
| makeweight2_stdarc | |||
| ) |
Testing MakeWeight2.
Definition at line 82 of file weights.gtest.cpp.
| TEST | ( | lexicographic | , |
| makeweight2_lexstdarc | |||
| ) |
Testing MakeWeight2 with LexStdArc.
Definition at line 91 of file weights.gtest.cpp.
| TEST | ( | lexicographic | , |
| copyw2tow1_stdarc | |||
| ) |
Test Map copy weight2 to weight1 – should do nothing.
Definition at line 102 of file weights.gtest.cpp.
| TEST | ( | lexicographic | , |
| copyw2tow1_lexstdarc | |||
| ) |
Test copy weight2 to weight1 – effective on lexstdarc.
Definition at line 126 of file weights.gtest.cpp.
| TEST | ( | tropicalsparseweight | , |
| makeweighthifst | |||
| ) |
Definition at line 150 of file weights.gtest.cpp.
| TEST | ( | tropicalsparseweight | , |
| makeweighthifstMapper | |||
| ) |
Definition at line 192 of file weights.gtest.cpp.
| TEST | ( | lexicographic | , |
| makeweighthifst | |||
| ) |
Definition at line 230 of file weights.gtest.cpp.
| TEST | ( | tropicalsparseweight | , |
| removeKthWeight | |||
| ) |