Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormaria nadejde <maria.nadejde@gmail.com>2013-09-13 18:06:48 +0400
committermaria nadejde <maria.nadejde@gmail.com>2013-09-13 18:06:48 +0400
commit5615a1176625323c1bbe713ecd7e816aaa782dcc (patch)
tree4cd9ea855b507ac32eaaa96bf7062e191250b32f /phrase-extract/InternalStructFeature.cpp
parentbff123635ea9773d50f8536885ba409d24175749 (diff)
sparse feature weight file
Diffstat (limited to 'phrase-extract/InternalStructFeature.cpp')
-rw-r--r--phrase-extract/InternalStructFeature.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/phrase-extract/InternalStructFeature.cpp b/phrase-extract/InternalStructFeature.cpp
index 5f558f4d7..061a378b2 100644
--- a/phrase-extract/InternalStructFeature.cpp
+++ b/phrase-extract/InternalStructFeature.cpp
@@ -52,9 +52,15 @@ void InternalStructFeatureSparse::add(std::string *internalStruct,
std::map<std::string,float>& sparseValues) const{
//cout<<"Sparse: "<<*internalStruct<<endl;
if(internalStruct->find("VBZ")!=std::string::npos)
- sparseValues["NT_VBZ"] = 1;
+ sparseValues["NTVBZ"] = 1;
if(internalStruct->find("VBD")!=std::string::npos)
- sparseValues["NT_VBD"] = 1;
+ sparseValues["NTVBD"] = 1;
+ if(internalStruct->find("VBP")!=std::string::npos)
+ sparseValues["NTVBP"] = 1;
+ if(internalStruct->find("PP")!=std::string::npos)
+ sparseValues["NTPP"] = 1;
+ if(internalStruct->find("SBAR")!=std::string::npos)
+ sparseValues["NTSBAR"] = 1;
}