smilli / py-corenlp

Python wrapper for Stanford CoreNLP
353 stars 75 forks source link

Adding properties param for tokensregex, semgrex and regex methods #28

Open gerardobort opened 6 years ago

gerardobort commented 6 years ago

As of released in CoreNLP v3.9.0, StanfordCoreNLPServer class now accepts the properties param for tokensregex and semgrex as well as for tregex endpoint.

This para works similarly as as the "annotate" endpoint does, allowing for language selection and custom annotators such as NER. It is not possible to use them without this.

Reference: https://github.com/stanfordnlp/CoreNLP/commit/8a2f5fbca514c5b1f01cdb7cc0ca96ed64973b82 https://github.com/stanfordnlp/CoreNLP/commit/76f2bcdcde0d2266e7ab50ebb95a629c407f5922