Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bllip parser in Server #57

Closed
jofatmofn opened this issue Jul 6, 2017 · 3 comments
Closed

bllip parser in Server #57

jofatmofn opened this issue Jul 6, 2017 · 3 comments

Comments

@jofatmofn
Copy link

jofatmofn commented Jul 6, 2017

Please let me know if bllip parser can be used in this fashion. I am using Flask.

During start-up:
rrp = RerankingParser.fetch_and_load('WSJ-PTB3', verbose=True)

While processing (multiple concurrent) requests from clients (Same object rrp is reused):
constituency_lisp_string = str(rrp.parse_tagged(tokens, possible_tags=dict(enumerate(postags)))[0].ptb_parse)

@dmcc
Copy link
Member

dmcc commented Jul 6, 2017 via email

@jofatmofn
Copy link
Author

Thanks. If I need to have multiple concurrent parses, then is it okay to maintain a pool of rrp objects?

@dmcc
Copy link
Member

dmcc commented Jul 6, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants