close #630 make convert function state <-> annotation
Merge pull request #837 from mozilla-japan/task630

close #630 make convert function state <-> annotation