mirror of
https://github.com/marian-nmt/marian.git
synced 2024-11-30 21:39:52 +03:00
clean up hypo state interface
This commit is contained in:
parent
6b7aa7577b
commit
a4587cb3f2
@ -23,6 +23,18 @@ struct HypoState
|
||||
|
||||
typedef std::vector<HypoState> HypoStates;
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
struct AmunInput : public HypoState
|
||||
{
|
||||
AmunInput(const HypoState &hypoState)
|
||||
:HypoState(hypoState)
|
||||
{
|
||||
}
|
||||
|
||||
Words phrase;
|
||||
};
|
||||
|
||||
typedef std::vector<AmunInput> AmunInputs;
|
||||
|
||||
}
|
||||
|
||||
|
@ -55,7 +55,7 @@ HypoState MosesPlugin::SetSource(const std::vector<size_t>& words) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
HypoStates MosesPlugin::Score(const HypoStates &inputs)
|
||||
HypoStates MosesPlugin::Score(const AmunInputs &inputs)
|
||||
{
|
||||
HypoStates outputs(inputs.size());
|
||||
|
||||
|
@ -34,7 +34,7 @@ class MosesPlugin {
|
||||
|
||||
HypoState SetSource(const std::vector<size_t>& words);
|
||||
|
||||
HypoStates Score(const HypoStates &inputs);
|
||||
HypoStates Score(const AmunInputs &inputs);
|
||||
|
||||
private:
|
||||
amunmt::God god_;
|
||||
|
Loading…
Reference in New Issue
Block a user