summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/system_tests/tagger/TRAIN1
-rw-r--r--tests/system_tests/tagger/cdec.ini5
-rw-r--r--tests/system_tests/tagger/input.txt2
-rw-r--r--tests/system_tests/tagger/pos.grammar4
-rw-r--r--tests/system_tests/tagger/tagset1
-rw-r--r--tests/system_tests/tagger/weights2
6 files changed, 15 insertions, 0 deletions
diff --git a/tests/system_tests/tagger/TRAIN b/tests/system_tests/tagger/TRAIN
new file mode 100644
index 00000000..c4bb433a
--- /dev/null
+++ b/tests/system_tests/tagger/TRAIN
@@ -0,0 +1 @@
+../../../training/cluster-ptrain.pl cdec.ini pos.grammar weights --gaussian_prior --sigma_squared 1 &> training.log & \ No newline at end of file
diff --git a/tests/system_tests/tagger/cdec.ini b/tests/system_tests/tagger/cdec.ini
new file mode 100644
index 00000000..15cc930d
--- /dev/null
+++ b/tests/system_tests/tagger/cdec.ini
@@ -0,0 +1,5 @@
+formalism=tagger
+feature_function=Tagger_BigramIdentity
+feature_function=LexicalPairIdentity
+intersection_strategy=full
+tagger_tagset=tagset \ No newline at end of file
diff --git a/tests/system_tests/tagger/input.txt b/tests/system_tests/tagger/input.txt
new file mode 100644
index 00000000..fe5cb58d
--- /dev/null
+++ b/tests/system_tests/tagger/input.txt
@@ -0,0 +1,2 @@
+A B C
+A \ No newline at end of file
diff --git a/tests/system_tests/tagger/pos.grammar b/tests/system_tests/tagger/pos.grammar
new file mode 100644
index 00000000..3415854b
--- /dev/null
+++ b/tests/system_tests/tagger/pos.grammar
@@ -0,0 +1,4 @@
+[X] ||| A B C ||| a b c
+[X] ||| A ||| a
+[X] ||| A ||| b
+[X] ||| B C ||| b c \ No newline at end of file
diff --git a/tests/system_tests/tagger/tagset b/tests/system_tests/tagger/tagset
new file mode 100644
index 00000000..3774da60
--- /dev/null
+++ b/tests/system_tests/tagger/tagset
@@ -0,0 +1 @@
+a b c
diff --git a/tests/system_tests/tagger/weights b/tests/system_tests/tagger/weights
new file mode 100644
index 00000000..ec8358f3
--- /dev/null
+++ b/tests/system_tests/tagger/weights
@@ -0,0 +1,2 @@
+Tagger_BigramIdentity 1
+LexicalPairIdentity 1 \ No newline at end of file