Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kemingy/ime
Yet another Chinese input method engine.
https://github.com/kemingy/ime
chinese input-method-engine
Last synced: about 1 month ago
JSON representation
Yet another Chinese input method engine.
- Host: GitHub
- URL: https://github.com/kemingy/ime
- Owner: kemingy
- License: mit
- Created: 2018-09-14T09:35:56.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-29T11:40:49.000Z (about 6 years ago)
- Last Synced: 2024-03-23T03:02:33.191Z (10 months ago)
- Topics: chinese, input-method-engine
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Chinese Pinyin Input Method Engine
[![Build Status](https://travis-ci.org/kemingy/ime.svg?branch=master)](https://travis-ci.org/kemingy/ime)
Yet another input method engine.
You can download data from [Google code(hslinuxextra)](https://code.google.com/archive/p/hslinuxextra/downloads).
## Tutorial
```py
>> from ime.engine import Engine
>> e = Engine()>> e.search('daima')
[(5, Word(han='代码', freq=6955)),
(3, Word(han='带', freq=7438)),
(3, Word(han='待', freq=6568)),
......]>> e.search('bitebi')
[(4, Word(han='比特', freq=4210)),
(4, Word(han='彼特', freq=912)),
(2, Word(han='比', freq=7543)),
......]
```## TODO
- [x] word(full match)
- [x] candidate(sort by 1. length 2. frequence)
- [ ] sentence(try to find correct words)
- [ ] correct misspelling(fuzzy spell)
- [ ] search with initials
- [ ] adjust frequence of word dynamically