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

slow results in docker #64

Open philiptolk opened 5 years ago

philiptolk commented 5 years ago

I am not sure if this is the right way to do this but I currently created a dockerfile with a web api which receives input writes it to a file.txt then calls parse.sh file.txt however this takes 8 seconds on a 1 cpu 2 gb memory on aws machine, their must be a better way! :)

philiptolk commented 5 years ago

Is their a way to keep the parser loaded into memory and then invoke the parser while running?

dmcc commented 5 years ago

You might want to try the Python interface. It would be pretty easy to build a server around this (though note that the parser is not thread-safe).