Added ptable-describe-features to list features used by PhraseDictionaryBitextSampling.

This commit is contained in:
Ulrich Germann 2014-10-25 12:06:24 -07:00
parent 53ef6c5c38
commit 44215b79c0

View 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);
}