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

part-of-speech tags are abbreviation #1

Open
niranjan8129 opened this issue Sep 7, 2018 · 1 comment
Open

part-of-speech tags are abbreviation #1

niranjan8129 opened this issue Sep 7, 2018 · 1 comment

Comments

@niranjan8129
Copy link

niranjan8129 commented Sep 7, 2018

Thanks for your very well tutorial, Suppose the word like " I need 100 dollar to buy a iphone ..
.......What is the part-of-speech tags are abbreviation of 100 ?
Also like 2nd example :" My account is number is ABC123XT
What is the part-of-speech tags are abbreviation of ABC123XT ?

Can you please help me out how to implement on your code?

Also, can you please give node what is the execution steps ?

I get error while running below model

(base) C:\Users\nbehera4\Desktop\AI\POS-Taggers\model>python pos.py

Traceback (most recent call last):
File "pos.py", line 315, in
main()
File "pos.py", line 277, in main
unigram_p, bigram_p, trigram_p, trigram_d = calc_ngram_probs(brown_tags, unigram_c, bigram_c, trigram_c)
File "pos.py", line 82, in calc_ngram_probs
unigram_p = {(a,): math.log(unigram_c[(a,)], 2) - math.log(unigram_total, 2) for a in unigram_c}
File "pos.py", line 82, in
unigram_p = {(a,): math.log(unigram_c[(a,)], 2) - math.log(unigram_total, 2) for a in unigram_c}
ValueError: math domain error

@cyzanfar
Copy link

this repo's code doesn't work unfortunately

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

2 participants