mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-20 07:42:21 +03:00
Added ptable-describe-features to list features used by PhraseDictionaryBitextSampling.
This commit is contained in:
parent
53ef6c5c38
commit
44215b79c0
28
moses/TranslationModel/UG/ptable-describe-features.cc
Normal file
28
moses/TranslationModel/UG/ptable-describe-features.cc
Normal file
@ -0,0 +1,28 @@
|
||||
#include "mmsapt.h"
|
||||
#include "moses/TranslationModel/PhraseDictionaryTreeAdaptor.h"
|
||||
#include <boost/foreach.hpp>
|
||||
#include <boost/format.hpp>
|
||||
#include <boost/tokenizer.hpp>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <algorithm>
|
||||
#include <iostream>
|
||||
|
||||
using namespace Moses;
|
||||
using namespace bitext;
|
||||
using namespace std;
|
||||
using namespace boost;
|
||||
|
||||
int main()
|
||||
{
|
||||
string line;
|
||||
getline(cin,line);
|
||||
Mmsapt PT(line);
|
||||
PT.Load(false);
|
||||
vector<string> const& fnames = PT.GetFeatureNames();
|
||||
BOOST_FOREACH(string const& s, fnames)
|
||||
cout << s << endl;
|
||||
exit(0);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user