Skip to content

Conversation

hartmann-lars
Copy link

@hartmann-lars hartmann-lars commented Apr 30, 2020

When looking for the word 'of' after 'kind' where 'kind' is the last word in the sentence it will cause a lookup at an not existing index in the array.

Also fixing normalize divison by zero issue. The following trump tweet was tokenized in the unit test as it resolves to zero.

If the Fake News Opposition Party is pushing, with all their might, the fact that President Trump “ignored early warnings about the threat,” then why did Media & Dems viciously criticize me when I instituted a Travel Ban on China? They said “early & not necessary.” Corrupt Media!

Lars Hartmann added 2 commits April 30, 2020 20:59
@hartmann-lars hartmann-lars changed the title Fixed polarity bug getting 'Undefined offset: 1' Fixed polarity bug getting 'Undefined offset: 1' along with Divison by zero error. Apr 30, 2020
@hartmann-lars hartmann-lars changed the title Fixed polarity bug getting 'Undefined offset: 1' along with Divison by zero error. Fixed polarity bug getting 'Undefined offset: 1' along with normalization bug getting Divison by zero error. Apr 30, 2020
@yooper yooper merged commit ac33de1 into yooper:master May 2, 2020
@yooper
Copy link
Owner

yooper commented May 2, 2020

Thank you for the contributions!

@hartmann-lars
Copy link
Author

Thank you too for sharing your great work. Best solution out there for PHP 2020 IMO.

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

Successfully merging this pull request may close these issues.

2 participants