Skip to content

Commit

Permalink
Merge pull request HIT-SCIR#131 from icycandy/master
Browse files Browse the repository at this point in the history
parser.n: output raw forms instead of sbc2dbc() forms
  • Loading branch information
Oneplus committed Aug 15, 2015
2 parents 7eae6a7 + bce82fe commit 0214ea5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parser.n/io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ void CoNLLWriter::write(const Instance& inst) {

for (size_t i = 1; i < len; ++ i) {
f << i << "\t" // 0 - index
<< inst.forms[i] << "\t" // 1 - form
<< inst.raw_forms[i] << "\t" // 1 - form
<< inst.lemmas[i] << "\t" // 2 - lemma
<< inst.postags[i] << "\t" // 3 - postag
<< "_\t" // 4 - unknown
Expand All @@ -84,7 +84,7 @@ void CoNLLWriter::write(const Instance& inst, const std::vector<int>& heads,
size_t len = inst.size();
for (size_t i = 1; i < len; ++ i) {
f << i << "\t" // 0 - index
<< inst.forms[i] << "\t" // 1 - form
<< inst.raw_forms[i] << "\t" // 1 - form
<< inst.lemmas[i] << "\t" // 2 - lemma
<< inst.postags[i] << "\t" // 3 - postag
<< "_\t" // 4 - unknown
Expand Down

0 comments on commit 0214ea5

Please sign in to comment.