diff options
author | trevor.cohn <trevor.cohn@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-15 00:34:58 +0000 |
---|---|---|
committer | trevor.cohn <trevor.cohn@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-15 00:34:58 +0000 |
commit | 40ee5446b84b5cdbc4e4a613e4c1aa19231c42d3 (patch) | |
tree | deb10ba93df13ec5cce90aa59d5fb8fe5a678a55 /extools/extract.h | |
parent | 2775fc13d1e8d3ad45c8ddf94226397403e0e373 (diff) |
Massacred the pipeline to support source language phrases and contexts.
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@255 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'extools/extract.h')
-rw-r--r-- | extools/extract.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extools/extract.h b/extools/extract.h index 76292bed..e9ea5e65 100644 --- a/extools/extract.h +++ b/extools/extract.h @@ -4,6 +4,7 @@ #include <iostream> #include <utility> #include <vector> +#include <boost/tuple/tuple.hpp> #include "array2d.h" #include "wordid.h" #include "sparse_vector.h" @@ -74,9 +75,8 @@ struct Extract { // this uses the TARGET span (i,j) to annotate phrases, will copy // phrases if there is more than one annotation. - // TODO: support source annotation static void AnnotatePhrasesWithCategoryTypes(const WordID default_cat, - const Array2D<std::vector<WordID> >& types, + const std::map< boost::tuple<short,short,short,short>, std::vector<WordID> > &types, std::vector<ParallelSpan>* phrases); // use the Chiang (2007) extraction logic to extract consistent subphrases |