Exclamation mark isn't tags as a sent-final punct
NickZambrano opened this issue · 3 comments
NickZambrano commented
In the readme it says that the "!" should be tags as a sent-final punct (".")
In fact on my side it's tagged as "!" so if I console.log I got ["!","!"]
and not ["!","."]
.
Hugo-ter-Doest commented
I think the problem is caused by the lexicon in lexicon.js
. It assigns !
to !
:
"!": [
"!"
],
If you change this to .
it should work correctly.
Hugo
NickZambrano commented
After looking in the code, I saw, but maybe the readme should be updated, right ?
Hugo-ter-Doest commented
I think the lexicon should be updated according to the README. The tags as defined in the README follow PENN Treebank tags.
Hugo