[][src]Function word_segmenters::parse_bigrams

pub fn parse_bigrams<R: BufRead>(
    reader: R,
    name: Option<&str>
) -> Result<HashMap<(String, String), f64>, ParseError>

Parse bigrams from the reader (format: <word-1> <word-2>\t<int>\n)

The optional name argument may be used to provide a source name for error messages.