BlueObelisk / chemicaltagger

ChemicalTagger is a tool for semantic text-mining in chemistry.
Apache License 2.0
36 stars 8 forks source link

RecombineTokens bug #3

Closed lo2aayy closed 4 years ago

lo2aayy commented 4 years ago

In the method RecombineTokens if there are more than 2 "dash" tags after each other they will be repeated as the indexList adds the current and next, and then afterwards they're added again.

Example:

Input: N(C/-/-3) will be tokenized to: [ "N(C/-//-3" , ")" ]

an if condition to check if it exists before adding an index to the indexList will resolve it.

mjw99 commented 4 years ago

Try submitting a PR to see if the suggestion passed the current test suite.