-
Notifications
You must be signed in to change notification settings - Fork 2
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
run together limit #1
Comments
When you say "hanging" what exactly do you mean? It can't get past the static PosibErr<void> run_together_limit(SpellerImpl * m, int value) {
if (value > 8) {
m->config()->replace("run-together-limit", "8");
// will loop back
} else {
m->run_together_limit_ = value;
}
return no_err;
} |
It's hanging when it tries to process a string with three or more words. In my instance, the word variable seems to be empty after word = speller.suggest(word).first |
Can you provide the exact code and words you're using to trigger this? |
Just using a test strong of elephantapplefrog |
Ok, so I'm assuming that it's not actually "hanging" in the sense that you're getting a lock-up or the program stops responding or anything; instead, you're just getting It looks like you need to set an additional option if you want to use a run-together-limit greater than 2: speller.set_option("run-together-limit", "8")
speller.set_option("run-together", "true") # defaults to false |
Well the app actually does stop running. I can't figure it out at all. update* Ok so if I add the options you listed it doesn't hang. However I guess what I was trying to do was get it to split the words. For example in "elephantapplefrog" it should produce "elephant apple frog". If I take out the run-together option, it works like I want for two word strings, but hangs on 3 or more. If I add the options, it doesn't hang but also doesn't split up the words. If I change it returns "elephant". thanks for the help On Nov 10, 2011, at 17:48, Dylan Markow [email protected] wrote:
|
I'm trying to get raspell working and recognize long strings of run-together words. Using this to init:
However it's hanging on anything over 2.
The text was updated successfully, but these errors were encountered: