I'm trying to use the Stanford Parser through NLTK, following the example here.
I follow the first two lines of the example (with the necessary import)
from nltk.parse.corenlp import CoreNLPDependencyParser
dep_parser = CoreNLPDependencyParser(url='http://localhost:9000')
parse, = dep_parser.raw_parse('The quick brown fox jumps over the lazy dog.')
but I get an error saying:
[...] Failed to establish a new connection: [Errno 61] Connection refused"
I realize that it must be an issue with trying to connect to the url given as input to the constructor.
dep_parser = CoreNLPDependencyParser(url='http://localhost:9000')
What url should I be connecting to, if not this? If this is correct, what is the issue?