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

Problem with certain characters? #194

Open
sixtyfive opened this issue Sep 28, 2021 · 0 comments
Open

Problem with certain characters? #194

sixtyfive opened this issue Sep 28, 2021 · 0 comments

Comments

@sixtyfive
Copy link

This is only for the LSI; the Bayes handles it fine:

[12] pry(main)> lsi = ClassifierReborn::LSI.new
=> #<ClassifierReborn::LSI:0x0000562e8ecd5e48 @auto_rebuild=true, @word_list=#<ClassifierReborn::WordList:0x0000562e8ecd5cb8 @location_table={}>, @items={}, @version=0, @built_at_version=-1, @language="en", @cache_node_vectors=nil>
[13] pry(main)> lsi.add_item("Manṣūr", :content)
=> nil
[14] pry(main)> lsi.add_item("ʿAbd", :content)
ZeroDivisionError: divided by 0
from /usr/lib/ruby/gems/3.0.0/gems/classifier-reborn-2.2.0/lib/classifier-reborn/extensions/vector.rb:34:in `/'
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

1 participant