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

elit parse: could we have an option for a single input instead of a loop? #4

Open
ag91 opened this issue Nov 8, 2021 · 1 comment

Comments

@ag91
Copy link

ag91 commented Nov 8, 2021

Hi, thanks for this project! It made so easy to tokenize a sentence. I am pretty new to NLP and this is making it very accessible to me :)

I was hoping I could use this in a bash script. I would like to pass a string and get a JSON with your analyses out.
It could be done by adding another args.task like 'parse-one' here
But maybe that is not your vision for this?
(I saw there is an API way to query elit, but I was hoping to go Unix-y)

Thanks again for sharing this!

@hankcs
Copy link
Collaborator

hankcs commented Jan 19, 2022

Hi, thanks for the suggestion. I think when stdin reaches an EOF (either the end of file or a CTRL+D), the loop will break.

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