Lynten / stanford-corenlp

Python wrapper for Stanford CoreNLP.
MIT License
919 stars 200 forks source link

url add port number after path if path_or_host is not just a hostname. #80

Open varunmittal91 opened 5 years ago

varunmittal91 commented 5 years ago

if the url is not the hostname, for example: http://api.example.com/corenlp and the port number is None or 9000:

it will generate the url http://api.example.com/corenlp:None for port number None and http://api.example.com/corenlp:9000 for port number 9000. Instead of doing: http://api.example.com/corenlp and http://api.example.com/corenlp:9000 respectively.