00001 #include "mmsapt.h" 00002 #include "moses/TranslationModel/PhraseDictionaryTreeAdaptor.h" 00003 #include <boost/foreach.hpp> 00004 #include <boost/format.hpp> 00005 #include <boost/tokenizer.hpp> 00006 #include <boost/shared_ptr.hpp> 00007 #include <algorithm> 00008 #include <iostream> 00009 00010 using namespace Moses; 00011 using namespace sapt; 00012 using namespace std; 00013 using namespace boost; 00014 00015 int main() 00016 { 00017 string line; 00018 getline(cin,line); 00019 Mmsapt PT(line); 00020 AllOptions::ptr opts(new AllOptions); 00021 PT.Load(opts, false); 00022 cout << PT.GetFeatureNames().size() << endl; 00023 exit(0); 00024 } 00025 00026 00027