-
Notifications
You must be signed in to change notification settings - Fork 7
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
Report a bug #5
Comments
The same error for email below, with the keyword 'delivery'. Why I am getting this warning?
|
I did add a print debug in Math.php and this is output: Array
(
[this] => Array
(
[probability] => 0
[usefulness] => 0.5
)
[is] => Array
(
[probability] => 0
[usefulness] => 0.5
)
[delivery] => Array
(
[probability] => 1
[usefulness] => 0.5
)
[home] => Array
(
[probability] => 0.5
[usefulness] => 0
)
[where] => Array
(
[probability] => 0.5
[usefulness] => 0
)
[name:] => Array
(
[probability] => 0.5
[usefulness] => 0
)
[bellow:] => Array
(
[probability] => 0.5
[usefulness] => 0
)
[be] => Array
(
[probability] => 0.5
[usefulness] => 0
)
[full] => Array
(
[probability] => 0.5
[usefulness] => 0
)
[phone] => Array
(
[probability] => 0.5
[usefulness] => 0
)
[country:] => Array
(
[probability] => 0.5
[usefulness] => 0
)
[shall] => Array
(
[probability] => 0.5
[usefulness] => 0
)
[airport:] => Array
(
[probability] => 0.5
[usefulness] => 0
)
[nearest] => Array
(
[probability] => 0.5
[usefulness] => 0
)
[submit] => Array
(
[probability] => 0.5
[usefulness] => 0
)
) So I guess you should have if clause within foreach to see if probability is greater than zero. I am going to do a pull request. |
Hi, Thanks for the report. Can you attach full script which you used? And can you give me info about PHP version you use? I don't think so that lexeme will have in this case probability of 0 or this is right place to fix it, but I need to try to reproduce it :) |
Hi, Please use the first text as email text and the following: For the second text as email text please use ['category' => 'spam', 'content' => 'delivery'], I use php 5.6. If you still cannot reproduce it, please letme know and I give full script. |
@bgruszka I apologize, while typing I accidentally submitted it. I edited above. Please re-read it. |
@bgruszka Could you replicate with instruction above? |
Hi, yes thanks :) I made some fixed and released new version 0.2.1 |
Was the problem because of unicode? Which unicode was in my test? What was problem? |
Hello @bgruszka
For email text below and with
['category' => 'spam', 'content' => 'automated'],
I am getting warning below for both Burton and Graham methods. please advice.
here is email text:
The text was updated successfully, but these errors were encountered: