summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--extractor/README.md14
2 files changed, 15 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index d368a3ad..d963db32 100644
--- a/.gitignore
+++ b/.gitignore
@@ -188,6 +188,7 @@ utils/small_vector_test
utils/ts
utils/weights_test
training/crf/mpi_batch_optimize
+training/crf/mpi_baum_welch
training/crf/mpi_compute_cllh
training/crf/mpi_extract_features
training/crf/mpi_extract_reachable
diff --git a/extractor/README.md b/extractor/README.md
new file mode 100644
index 00000000..575f5ca5
--- /dev/null
+++ b/extractor/README.md
@@ -0,0 +1,14 @@
+C++ implementation of the online grammar extractor originally developed by [Adam Lopez](http://www.cs.jhu.edu/~alopez/).
+
+To run the extractor you need to:
+
+ cdec/extractor/run_extractor -a <alignment> -b <parallel_corpus> -g <grammar_output_path> < <input_sentences> > <sgm_file>
+
+To run unit tests you need first to configure `cdec` with the [Google Test](https://code.google.com/p/googletest/) and [Google Mock](https://code.google.com/p/googlemock/) libraries:
+
+ ./configure --with-gtest=</absolute/path/to/gtest> --with-gmock=</absolute/path/to/gmock>
+
+Then, you simply need to:
+
+ cd cdec/extractor
+ make check