diff options
author | Colin Cherry <Colin.Cherry@nrc-cnrc.gc.ca> | 2012-06-26 19:40:16 +0400 |
---|---|---|
committer | Colin Cherry <Colin.Cherry@nrc-cnrc.gc.ca> | 2012-06-27 00:29:20 +0400 |
commit | 32299593fa4699bcc04c0b461ed935b207ab31ad (patch) | |
tree | baf24788cd7051928ebf598bb9d6b7b198d0d138 /mert/MiraFeatureVector.h | |
parent | 7cd83567523aba0bea371e32ae4d3282f3bbf34d (diff) |
Added debugging info to kbmira.
Diffstat (limited to 'mert/MiraFeatureVector.h')
-rw-r--r-- | mert/MiraFeatureVector.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mert/MiraFeatureVector.h b/mert/MiraFeatureVector.h index 31dd025c3..89c7fc126 100644 --- a/mert/MiraFeatureVector.h +++ b/mert/MiraFeatureVector.h @@ -13,6 +13,7 @@ #define MERT_MIRA_FEATURE_VECTOR_H #include <vector> +#include <iostream> #include "FeatureDataIterator.h" @@ -34,6 +35,8 @@ public: friend MiraFeatureVector operator-(const MiraFeatureVector& a, const MiraFeatureVector& b); + friend std::ostream& operator<<(std::ostream& o, const MiraFeatureVector& e); + private: std::vector<ValType> m_dense; std::vector<std::size_t> m_sparseFeats; |