emorynlp / elit

Emory Language and Information Toolkit
Other
37 stars 2 forks source link

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

Open ag91 opened 2 years ago

ag91 commented 2 years ago

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 commented 2 years ago

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.