BLLIP / bllip-parser

BLLIP reranking parser (also known as Charniak-Johnson parser, Charniak parser, Brown reranking parser) See http://pypi.python.org/pypi/bllipparser/ for Python module.
http://bllip.cs.brown.edu/
227 stars 53 forks source link

Facing WindowsError: [Error 32] error while running sd.sd.convert_tree #51

Closed ankurgulati closed 7 years ago

ankurgulati commented 7 years ago

The error looks like this : WindowsError: [Error 32] The process cannot access the file because it is being used by another process: 'c:\users\nasdnjdn\appdata\local\temp\tmp6xftke'

Please help with a fix

dmcc commented 7 years ago

If you're calling StanfordDependencies, I'm guessing it's related to https://github.com/dmcc/PyStanfordDependencies/issues/15. AFAICT, the issue isn't entirely solved, but there is a workaround.

ankurgulati commented 7 years ago

@dmcc Can you help me with the workaround?

dmcc commented 7 years ago

The workaround is:

you might want to try replacing the os.remove(input_file.name) line (SubprocessBackend.py, line 80) with pass.

Looks like it's now line 87.

dmcc commented 7 years ago

Closing this bug since it's really an issue in PySD. Please follow up on https://github.com/dmcc/PyStanfordDependencies/issues/15 if you're still having this problem.