CTN-0094 / DOPE

Drug Ontology Parsing Engine
https://ctn-0094.github.io/DOPE/
Other
21 stars 1 forks source link

Stop Words Failure in parse() #39

Closed gabrielodom closed 3 years ago

gabrielodom commented 3 years ago

Consider the following example:

sentence <- 'I had a bunch of coke.'

The parse() function will erroneously return "bunch" as a word of interest even though it is included in drug_stop_words.

gabrielodom commented 3 years ago

There was a line of code at the top of the function (drug_stop_names <- NULL), which was most likely included to turn off a "no visible bindings" issue in the package check. We fixed this via "DOPE::"drug_stop_names".