Skip punctuations in java rule

hi,

we are trying to implement customized java rule for our customer needs.
if i check the POS for a word with punctuation, it throws an exception “could not check the sentence”.

example sentence:

“With the increase of pH from 0.4 to 0.5, the reaction rates of 4-MCP and 2,4-DCP decrease first and then increase, and finally decrease rapidly when pH > pKa, while the rates of 2,4,6-TCP decrease continuously.”

please suggest me how to handle such cases.

Regards,
Deepika

What is the complete error, including the full stack trace?