diff options
author | Marcin Junczys-Dowmunt <junczys@amu.edu.pl> | 2015-01-09 17:04:10 +0300 |
---|---|---|
committer | Marcin Junczys-Dowmunt <junczys@amu.edu.pl> | 2015-01-09 17:04:10 +0300 |
commit | 22e2349870d690859db641dac729524d73161c8e (patch) | |
tree | b30a6d9904f4e7a477e0330da7106a5501576292 /vw | |
parent | b5f7b0e325fd40f50231766e0e681716a522a9cf (diff) |
verbatim text in readme
Diffstat (limited to 'vw')
-rw-r--r-- | vw/README.md | 82 |
1 files changed, 41 insertions, 41 deletions
diff --git a/vw/README.md b/vw/README.md index a573eb628..7b584f3ed 100644 --- a/vw/README.md +++ b/vw/README.md @@ -19,53 +19,53 @@ Configuration To use the classifier edit your moses.ini - [features] - ... - VW path=/home/username/vw/classifier1.vw - VWFeatureSourceBagOfWords - VWFeatureTargetIndicator - VWFeatureTargetIndicator - ... - - [weights] - ... - VW0= 0.2 - ... - + [features] + ... + VW path=/home/username/vw/classifier1.vw + VWFeatureSourceBagOfWords + VWFeatureTargetIndicator + VWFeatureTargetIndicator + ... + + [weights] + ... + VW0= 0.2 + ... + If you change the name of the main VW feature, remember to tell the VW classifier features which classifier they belong to: - [features] - ... - VW name=bart path=/home/username/vw/classifier1.vw - VWFeatureSourceBagOfWords used-by=bart - VWFeatureTargetIndicator used-by=bart - VWFeatureTargetIndicator used-by=bart - ... - - [weights] - ... - bart= 0.2 - ... + [features] + ... + VW name=bart path=/home/username/vw/classifier1.vw + VWFeatureSourceBagOfWords used-by=bart + VWFeatureTargetIndicator used-by=bart + VWFeatureTargetIndicator used-by=bart + ... + + [weights] + ... + bart= 0.2 + ... You can also use multiple classifiers: - [features] - ... - VW name=bart path=/home/username/vw/classifier1.vw - VW path=/home/username/vw/classifier2.vw - VW path=/home/username/vw/classifier3.vw - VWFeatureSourceBagOfWords used-by=bart,VW0 - VWFeatureTargetIndicator used-by=VW1,VW0,bart - VWFeatureSourceIndicator used-by=bart,VW1 - ... - - [weights] - ... - bart= 0.2 - VW0= 0.2 - VW1= 0.2 - ... + [features] + ... + VW name=bart path=/home/username/vw/classifier1.vw + VW path=/home/username/vw/classifier2.vw + VW path=/home/username/vw/classifier3.vw + VWFeatureSourceBagOfWords used-by=bart,VW0 + VWFeatureTargetIndicator used-by=VW1,VW0,bart + VWFeatureSourceIndicator used-by=bart,VW1 + ... + + [weights] + ... + bart= 0.2 + VW0= 0.2 + VW1= 0.2 + ... Training the classifier -----------------------
\ No newline at end of file |