dasmith / stanford-corenlp-python

Python wrapper for Stanford CoreNLP tools v3.4.1
GNU General Public License v2.0
611 stars 229 forks source link

Enables the use of versions higher than 3.4.1 #55

Open DanielJamieson opened 6 years ago

DanielJamieson commented 6 years ago

Adds a parameter to the Stanford CoreNLP constructor called "version_str", which takes on the default value of "3.4.1".

This variable, when combined with with the "corenlp_path" variable, allows the usage of more recent versions of the coreNLP library without major refactoring of the code base. Simple pass the path of the library as well as the version string so that this python wrapper can successfully find and load the correct JAR files.

This change does not guarantee full compatibility with all versions and future releases of the Stanford CoreNLP Library - but has been used with up to the current latest version at this time (3.8.0) with no problems.