mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-08 04:27:53 +03:00
31 lines
476 B
C++
31 lines
476 B
C++
/*
|
|
* Weights.h
|
|
*
|
|
* Created on: 24 Oct 2015
|
|
* Author: hieu
|
|
*/
|
|
|
|
#ifndef WEIGHTS_H_
|
|
#define WEIGHTS_H_
|
|
|
|
#include <iostream>
|
|
#include "TypeDef.h"
|
|
|
|
class FeatureFunctions;
|
|
|
|
class Weights {
|
|
friend std::ostream& operator<<(std::ostream &, const Weights &);
|
|
public:
|
|
Weights();
|
|
virtual ~Weights();
|
|
|
|
SCORE operator[](size_t ind) const {
|
|
return 444.5f;
|
|
}
|
|
|
|
void CreateFromString(const FeatureFunctions &ffs, const std::string &line);
|
|
|
|
};
|
|
|
|
#endif /* WEIGHTS_H_ */
|