File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,6 @@ void Normaliser::run(std::istream& is, std::ostream& os) {
85
85
// 4: lemma
86
86
// 5: syntag
87
87
//
88
- //
89
88
if ((!result.empty ()) && (result[2 ].length () != 0 )) {
90
89
if (verbose) {
91
90
std::cout << " New surface form: " << result[2 ] << std::endl;
@@ -95,6 +94,7 @@ void Normaliser::run(std::istream& is, std::ostream& os) {
95
94
}
96
95
else if ((!result.empty ()) && (result[4 ].length () != 0 )) {
97
96
string outstring = string (result[0 ]);
97
+ string lemma = result[4 ];
98
98
if (tags.empty ()) {
99
99
os << outstring << std::endl;
100
100
}
@@ -142,8 +142,11 @@ void Normaliser::run(std::istream& is, std::ostream& os) {
142
142
std::cout << " Using MIDTAPE: " << surf << std::endl;
143
143
}
144
144
}
145
- else if (verbose) {
146
- std::cout << " Using surf: " << surf << std::endl;
145
+ else {
146
+ surf = lemma.substr (1 , lemma.length () - 2 );
147
+ if (verbose) {
148
+ std::cout << " Using lemma: " << surf << std::endl;
149
+ }
147
150
}
148
151
if (expand) {
149
152
// 1. apply expansions from normaliser
@@ -260,6 +263,7 @@ void Normaliser::run(std::istream& is, std::ostream& os) {
260
263
}
261
264
}
262
265
}
266
+ // XXX: count some tabs
263
267
os << " \t\" " << newlemma << " \" " << reanal << " \" " << phon
264
268
<< " \" phon" << std::endl;
265
269
os << " \t " << result[0 ] << std::endl;
You can’t perform that action at this time.
0 commit comments