pub fn write_instances<W: Write>(
writer: &mut W,
instances: &[Instance],
) -> Result<()>Expand description
Writes the training instances of a sentence.
One line for each instance: +1 when the source depends on the target
and -1 when it does not, then its feature strings, all separated by
tabs. An empty line ends the sentence, so that a file can be cut into
folds between sentences.
§Arguments
writer- Where to write.instances- The instances of one sentence.
§Returns
Ok(()), Error::Structure for a feature that holds a tab or a line
break, or Error::Io.