diff options
author | Patrick Simianer <p@simianer.de> | 2011-07-27 00:03:35 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2011-09-23 19:13:57 +0200 |
commit | 05c41075d0018ca6142f7ba593742fbadfecdf65 (patch) | |
tree | dbcc5d241eb92691b26ea12d5a07646a6a0201c6 /utils/weights.h | |
parent | 1ee85918c6aaaf0ca9d72f7b876ba18e0c531b3e (diff) |
hacking in weights setting, getting
Diffstat (limited to 'utils/weights.h')
-rw-r--r-- | utils/weights.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/weights.h b/utils/weights.h index cc20283c..86701add 100644 --- a/utils/weights.h +++ b/utils/weights.h @@ -15,6 +15,10 @@ class Weights { void InitSparseVector(SparseVector<double>* w) const; void InitFromVector(const std::vector<double>& w); void InitFromVector(const SparseVector<double>& w); + void SetWeight(SparseVector<double>* v, const std::string f, const double w); + void SetWeight(SparseVector<double>* v, const WordID fid, const double w); + std::vector<double>* getw() { return &wv_; }; // probably a hack + void sz(); private: std::vector<double> wv_; }; |