# Tanaka A Rust interface to the [Tanaka Corpus][1] of parallel Japanese-English sentences. The standard [corpus](Corpus) is included - simply call [examples()](Corpus::examples) (or [examples_subset()](Corpus::examples_subset)). These take up a few megabytes in the library - they can be excluded by disabling their respective [feature flags](crate#feature-flags). ```rust # use tanaka::Corpus; let corpus = Corpus::examples(); println!("{:?}", corpus.examples[0]); ``` Otherwise, load the version of the corpus you want into a string, and parse it: ```rust # use tanaka::Corpus; let text = "A: 彼は忙しいですか。 Is he busy?#ID=303692_100005\n\ B: 彼(かれ)[01] は 忙しい(いそがしい) ですか"; let corpus = Corpus::parse(text).unwrap(); println!("{:?}", corpus.examples[0]); ``` [1]: https://www.edrdg.org/wiki/index.php/Tanaka_Corpus