![]() |
Re: Advanced text entry on Sailfish (Swype or similar)
Quote:
I get what you mean now. It's an option but this is up to Eber :) I tried the various approaches suggested here. I'll try further with this: Code:
tr '[:upper:]' '[:lower:]' < sanitized.list > sanitized.lowerIt is a bit better: Code:
wc sanitized.uniqI'll try to generate the file again tomorrow. Any ideas or help with the dict are more then welcome :) |
Re: Advanced text entry on Sailfish (Swype or similar)
Quote:
2) Well, this is what I did yesterday: Code:
aspell -l it dump master | aspell -l it expand | aspell -l it clean | sort | sort -uf | wc -l |
Re: Advanced text entry on Sailfish (Swype or similar)
Check out the last commit: You can now provide your own dictionary file instead of using the aspell one. You just need to create a words-it.txt file in $CORPUS_DIR with one word per line.
Also, if your input corpus uses the word "dall'oceano" and your dictionary contains "dall" and "oceano" and not "dall'oceano", they will be handled as two different words. |
Re: Advanced text entry on Sailfish (Swype or similar)
eber sorry my ignorance but what do you mean for input corpus? however is it possibile to show both dall and dall' when swyped d-a-l-l? thanks
PS: anything about eventual solution to avoid prediction bar get hidden from whatsapp input field in dalvik full screen mode? |
Re: Advanced text entry on Sailfish (Swype or similar)
Quote:
Quote:
|
Re: Advanced text entry on Sailfish (Swype or similar)
Quote:
Back to crunching the numbers. Let's see if this time it goes through :) |
Re: Advanced text entry on Sailfish (Swype or similar)
Hello. The last attempt failed with an overflow, despite limiting the dictç
Code:
13566000 |
Re: Advanced text entry on Sailfish (Swype or similar)
What is the size of your dictionary file and how many words does it contsin?
|
Re: Advanced text entry on Sailfish (Swype or similar)
There we go!
Code:
#cat words-it.txt | wc -l |
Re: Advanced text entry on Sailfish (Swype or similar)
Your corpus file is way too small. How many sentences does it include? And on the other hand your dictionary is way too big. Even if it does compile OkBoard will crash with such a huge dictionary.
My corpora has a filesize about 200MB and contains around 2000000 sentences. My dictionary has a size of nearly 1MB and contains around 100000 words. I tried a dictionary with 17 million words(size was around 30MB i think) and OKBoard crashed everytime i started it. |
Re: Advanced text entry on Sailfish (Swype or similar)
Quote:
The corpus I'm using is 300k lines. I'll try with the corpus sent by ferlanero, it's probably bigger. |
Re: Advanced text entry on Sailfish (Swype or similar)
I would start with a smaller dictionary, compile it and see if it works :-)
|
Re: Advanced text entry on Sailfish (Swype or similar)
Quote:
|
Re: Advanced text entry on Sailfish (Swype or similar)
Quote:
|
Re: Advanced text entry on Sailfish (Swype or similar)
Quote:
|
Re: Advanced text entry on Sailfish (Swype or similar)
Hi guys! I was checking the performance of the Spanish language for OKBoard and I have noticed just an issue: the words with letter "ñ"
In Spanish there is a lot of words containing the letter "ñ". After applying the "clean_corpus.py" script, all the words with that letter, remaining intact, but after doing "db/build.sh es" and finish the process correctly, the keyboard doesn't recognise the words with the "ñ" inside. I want to ask: Is there any solution for this? How can I do in order to OKBoard recognises words like "España"? Thanks in advance! |
Re: Advanced text entry on Sailfish (Swype or similar)
A quick update for the Italian friends: I finally managed to compile the Italian support. I need to rebuild it once more but will hopefully package and put it on openrepos in the next days.
@ferlanero I have no means to try to reproduce it at the moment (the workstation is at the office) but I guess Eric knows more. |
Re: Advanced text entry on Sailfish (Swype or similar)
Ok, it works! I have no time to package it right now, so I'll upload it here for the impatient. Feedback via PM while I put it on openrepos, so we don't clog the thread :)
This is the first version with the Paisa corpus and with the dictionary coming with Ubuntu (/usr/share/dict). This dictionary is the only reasonably sized (ca. 90k words) I could find without obvious spelling errors or wrong accents. I'll do my best to merge the corpus kindly provided by ferlanero, in case Paisa is not enough. Feel free to provide any better dicts or corpora. Thanks to everyone involved for the great help. File: https://www.dropbox.com/s/bp73u54k0qgwpul/ita.gz?dl=0 Instructions: extract the contents of the tar in ~/.local/share/okboard/ No need to reload the keyboard, it will pick the files up automatically as soon as you switch to ita. |
Re: Advanced text entry on Sailfish (Swype or similar)
thanks, donations for you and eber are on their way
spider how to donate to u? |
Re: Advanced text entry on Sailfish (Swype or similar)
it works great, thanks to ferlanero, spidernick84 and of course, Eber.
PS: i see that it miss a feature. When i swipe a word it would be better to put automatically a space...right now i have to tap space button between a word and the next...and is not that comfortable to swipe-tap-swipe |
Re: Advanced text entry on Sailfish (Swype or similar)
Quote:
|
Re: Advanced text entry on Sailfish (Swype or similar)
now issue seems to be risolved. i dont know why, maybe a bug, but now it works just fine.
edit: the problem is still there but ,as long as i can see, only in android application , not in native apps. Seems like the autospacing doesnt work in dalvik |
Re: Advanced text entry on Sailfish (Swype or similar)
Quote:
|
Re: Advanced text entry on Sailfish (Swype or similar)
indeed i was referring to all languages, not only italian!
|
Re: Advanced text entry on Sailfish (Swype or similar)
I love this keyboard. But somehow some words I often use in Dutch, have disappeared from the OKboard dictionary. Examples: ik (means I), van (means from). I already uninstalled and re-installed again.
Are there some quick fixes I can make? |
Re: Advanced text entry on Sailfish (Swype or similar)
You can add words manually by editing
/home/nemo/.local/share/okboard/nl-user.txt First word is the word you want OKBoard o show the second word is the one you swype, the numbers are always the same. |
Re: Advanced text entry on Sailfish (Swype or similar)
Quote:
|
Re: Advanced text entry on Sailfish (Swype or similar)
Quote:
Code:
ik ik 15 1454497723 |
Re: Advanced text entry on Sailfish (Swype or similar)
Quote:
|
Re: Advanced text entry on Sailfish (Swype or similar)
In the end there appeared to be a strange entry in the file:
Code:
ߍՀers ers 1 1454497724 |
Re: Advanced text entry on Sailfish (Swype or similar)
@ferlanero: what os did you use to compile the files?
|
Re: Advanced text entry on Sailfish (Swype or similar)
Quote:
|
Re: Advanced text entry on Sailfish (Swype or similar)
Quote:
|
Re: Advanced text entry on Sailfish (Swype or similar)
Quote:
If it still does not work, send me your language files and logs (you have to enable them in the application and they can be found in ~/.local/share/okboard). And do not expect a quick answer (I did not even start to work on the weeks old transparency issue). BTW, last week I worked on the engine that processes swipes. Now it is not that much more accurate, but it does no more assign bad scores to expected results. Next week I will start to re-implement the prediction engine (this is the part which handle language model and learning. At the moment it is completely broken) and after I will go back to regular bug fixing. |
Re: Advanced text entry on Sailfish (Swype or similar)
Quote:
Thank you very much! |
Re: Advanced text entry on Sailfish (Swype or similar)
Quote:
----------------------------------- I'm trying to make Finnish support for OKBoard, but have to ask some tips from you guys. I'm not experienced in stuff like this. Anyway here is my current check list: 1) I have Linux distribution to use 2) I've downloaded OKBoard tarball 3) Dictionaries... There's no dictionary file for Finninh at the link provided. 4) Corpora file. I first tried to use http://www.corpora.heliohost.org/download.html But file has CRC error (the 2016 version), so I ended up to get Finnish version from here instead: http://opus.lingfil.uu.se/OpenSubtitles2016.php 5) I think Finnish spellchecking doesn't use aspell, but Malaga based Voikko: http://voikko.puimula.org/ and if I'm not misunderstood, voikko is used by ispell for example. But how to get that finnish dictionary file is somehow unclear to me. After all this is done I could try to get forward with this but still lot of work as it seems. Also, What do you think, would it be good to include some additional sources too (like more official source ( http://kielitoimistonsanakirja.fi / http://kaino.kotus.fi/sanat/nykysuomi/ ) and if multible sources, how to easilly remove duplicates? |
Re: Advanced text entry on Sailfish (Swype or similar)
Quote:
I did a search and came up with this file: https://packetstormsecurity.com/file...innish.gz.html My knowledge of Finnish is limited to "Tervetuloa", "Kiitos", "Rautatientori" and some mixed insults that I'd rather not write, so I'm not the best person to judge if that file is free of spelling mistakes. I think it's not the best dict, since it seems to contain even occasional English and Italian words, but it's a good start. The okboard readme explains how to name the file and where to put it to bypass the aspell dict. Good luck again! |
Re: Advanced text entry on Sailfish (Swype or similar)
Why don't you use aspell-fi?
Finnish corpora files are available at: http://corpora2.informatik.uni-leipzig.de/download.html |
Re: Advanced text entry on Sailfish (Swype or similar)
Well I'm now testdriving Fedora, still have to used to this. So I first just looked at "software center" and there was no aspell-fi. But just tested via commandline and it seems to be there, but... If I'm not wrong all spelling efforts have been put to voikko for years now. I don't know that any distro uses nothing else than voikko as default for Finnish. But then again as said, this whole thing is so new to me that might be more than possible that someone else has to do this at the end, but until that I can give this a try and study things when I have some time.
|
Re: Advanced text entry on Sailfish (Swype or similar)
Is OKBoard getting cyrillic support anytime soon? I am interested in using English along with Russian
|
| All times are GMT. The time now is 23:46. |
vBulletin® Version 3.8.8