Corpus File Formats
Choose the Format that matches your UTF-8 source file.
Plain text#
Put one text entry on each line. Each line counts once.
Good morning.
See you tomorrow.
Text with counts#
Write one JSON array [text, count] per line. Use nonempty text and a positive integer count up to 4,294,967,295.
Sampling may reduce counts while keeping each text entry intact.
["Good morning.", 3]
["See you tomorrow.", 2]
Text with input forms#
Start with a JSON header that gives the format version, type, language and ordered list of input forms. Use different input form IDs supported by that language. Currently, Japanese supports kana and romaji.
Each following line is one complete entry. Give its written text and positional inputs, or give words whose entries each have those two fields. Don’t mix the two shapes. The optional count is a positive integer up to 4,294,967,295 and defaults to 1.
Words are joined exactly as written in each column. Add any intended spaces or punctuation yourself. Word boundaries label Trace; they do not split an entry for analysis. The sample uses the same entries and counts for every input form.
In the corpus editor, choose Text with input forms and Preview sample. These corpora stay in this browser, do not sync to an account, and do not have percentile rankings.
{"version":1,"type":"annotated-corpus","locale":"ja","inputForms":["kana","romaji"]}
{"words":[{"text":"猫","inputs":["ねこ","neko"]},{"text":"の","inputs":["の","no"]},{"text":"耳","inputs":["みみ","mimi"]}],"count":2}