diff options
author | philblunsom <philblunsom@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-05 20:51:20 +0000 |
---|---|---|
committer | philblunsom <philblunsom@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-05 20:51:20 +0000 |
commit | 864995a44648f8de8042d26b30a92ed137acba28 (patch) | |
tree | 7d1da26e1f34c67824265f821a5048fee7bf0f6b /gi/pyp-topics/src/corpus.hh | |
parent | 363bf3b28f0c045e748f734989658d5b11a4d5b8 (diff) |
Updated config file handling for pyp-topics and pipeline.
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@141 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'gi/pyp-topics/src/corpus.hh')
-rw-r--r-- | gi/pyp-topics/src/corpus.hh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gi/pyp-topics/src/corpus.hh b/gi/pyp-topics/src/corpus.hh index c2f37130..24981946 100644 --- a/gi/pyp-topics/src/corpus.hh +++ b/gi/pyp-topics/src/corpus.hh @@ -4,6 +4,7 @@ #include <vector> #include <string> #include <map> +#include <limits> #include <boost/shared_ptr.hpp> #include <boost/ptr_container/ptr_vector.hpp> @@ -35,6 +36,10 @@ public: int num_terms() const { return m_num_terms; } int num_types() const { return m_num_types; } + virtual int context_count(const int&) const { + return std::numeric_limits<int>::max(); + } + protected: int m_num_terms, m_num_types; boost::ptr_vector<Document> m_documents; |