Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

about Chinese Char.csv #11

Open
Dennisdezhangaho opened this issue Apr 28, 2020 · 1 comment
Open

about Chinese Char.csv #11

Dennisdezhangaho opened this issue Apr 28, 2020 · 1 comment

Comments

@Dennisdezhangaho
Copy link

Hi Akif:

I am looking for a explain for those language file( .csv) as i want to modify them so i can input a new language for myself. can you give a hand to help me understand those file, and how to modify them?

Best Regards
Dennis

@cemheren
Copy link
Owner

cemheren commented May 4, 2020

Multiple schemas for the probability map file is supported right now. english and chinese use different syntax. For the chinese one, the scema is <characher>,<frequency>,<[keywords]>. The frequency is used to determine which word to show in the autocompletion like 要 is a popular word so it has 140 points for it.

This is the code that us used for parsing that file take a look.

let frequency = Int(lineItems[1]) ?? 1;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants