dariusk/pos-js

Exclamation mark isn't tags as a sent-final punct

NickZambrano opened this issue · 3 comments

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 ["!","."].

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

After looking in the code, I saw, but maybe the readme should be updated, right ?

I think the lexicon should be updated according to the README. The tags as defined in the README follow PENN Treebank tags.

Hugo