Skip to content

shinichi1729/one-row-keyboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What's this?

Training and accuracy verification of a Kytea - based reading prediction model for one row keyboard. The conversion from alphabets and symbols to numbers is determined by the position of the columns on the keyboard.

{!, q, a, z} => 1,  {“, w, s, x}  => 2
{#, e, d, c} => 3,  {$, r, f, v}  => 4
{%, t, g, b} => 5,  {&, y, h, n}  => 6
{‘, u, j, m} => 7,  {(, I, k, ,}  => 8
{), o, l, .} => 9,  {p, +, /}     => 9
this is a pen . => 5682 82 1 036 9  # uniquely determined
5682 82 1 036 9 => ???              # inference from context

Installation

Building from a package

$ tar -xzf kytea-X.X.X.tar.gz
$ cd kytea-X.X.X
$ ./configure
$ make
$ make install
$ kytea --help  # success!!

Quick start

$ echo "外国人参政権" | kytea
外国/名詞/がいこく 人/接尾辞/じん 参政/名詞/さんせい 権/接尾辞/けん

Training: click here for details.

Preprocessing the dataset's Excel file to create train.txt for KyTea training.

train.txt:
8/i 316/can 75/'t 5399/tell 269/who 2899/will 144843/arrive 48425/first 9/.
7166/many 1687192/animals 6143/have 5336/been 332549633/destroyed 56/by 736/men 9/.
...

How to train

$ train-kytea -full data/train.txt -model model/model.dat

How to make inferences

$ kytea -model model/model.dat -nows < evaluate_input.txt > evaluate_output.txt

About

kyteaによる読み推定モデルの検証

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages