tanaka 0.1.0

A Rust interface the Tanaka Corpus of parallel Japanese-English sentences
Documentation
use tanaka::Corpus;

#[cfg(feature = "include")]
#[test]
fn test_load_cc_by() {
    // N.B. No question mark, as we unwrap the result.
    let corpus: Corpus = Corpus::examples();

    assert_eq!(corpus.examples.len(), 147893);
}

#[cfg(feature = "include_subset")]
#[test]
fn test_load_cc_by_checked() {
    // N.B. No question mark, as we unwrap the result.
    let corpus: Corpus = Corpus::examples_subset();

    assert_eq!(corpus.examples.len(), 25854);
}