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 | a8f7835ebae718bfaf717289efc998754ba6117b (patch) | |
| tree | 1174120053355fdd019b1667e72568044adb448e /gi/pyp-topics/src/corpus.hh | |
| parent | c26c81e305cb733d74db20189a1f3a7afd2fc306 (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;   | 
