* Appends a textual representation of Feature to str. * This representation is simply a list of the N parameters * of the feature, terminated with a newline. It is assumed * that the ExtraPenalty field can be reconstructed from the * parameters of the feature. It is also assumed that the * feature type information is specified or assumed elsewhere. * @param Feature feature to write out to
| 189 | * @note History: Wed May 23 09:28:18 1990, DSJ, Created. |
| 190 | */ |
| 191 | void WriteFeature(FEATURE Feature, STRING* str) { |
| 192 | for (int i = 0; i < Feature->Type->NumParams; i++) { |
| 193 | #ifndef WIN32 |
| 194 | assert(!isnan(Feature->Params[i])); |
| 195 | #endif |
| 196 | str->add_str_double(" ", Feature->Params[i]); |
| 197 | } |
| 198 | *str += "\n"; |
| 199 | } /* WriteFeature */ |
| 200 | |
| 201 | /** |
| 202 | * Write a textual representation of FeatureSet to File. |
no test coverage detected