diff options
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; |