From 851e389dffdd6996ea32d70defb8906de80b9edc Mon Sep 17 00:00:00 2001 From: Chris Dyer Date: Mon, 14 Dec 2009 20:35:11 -0500 Subject: few small fixes of alignment tools, add new orthographic similarity feature for word aligner, final naming of directories, libraries in cdec --- src/parser_test.cc | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 src/parser_test.cc (limited to 'src/parser_test.cc') diff --git a/src/parser_test.cc b/src/parser_test.cc deleted file mode 100644 index da1fbd89..00000000 --- a/src/parser_test.cc +++ /dev/null @@ -1,35 +0,0 @@ -#include -#include -#include -#include -#include -#include "hg.h" -#include "trule.h" -#include "bottom_up_parser.h" -#include "tdict.h" - -using namespace std; - -class ChartTest : public testing::Test { - protected: - virtual void SetUp() { } - virtual void TearDown() { } -}; - -TEST_F(ChartTest,LanguageModel) { - LatticeArc a(TD::Convert("ein"), 0.0, 1); - LatticeArc b(TD::Convert("haus"), 0.0, 1); - Lattice lattice(2); - lattice[0].push_back(a); - lattice[1].push_back(b); - Hypergraph forest; - GrammarPtr g(new TextGrammar); - vector grammars(1, g); - ExhaustiveBottomUpParser parser("PHRASE", grammars); - parser.Parse(lattice, &forest); -} - -int main(int argc, char **argv) { - testing::InitGoogleTest(&argc, argv); - return RUN_ALL_TESTS(); -} -- cgit v1.2.3