elit icon indicating copy to clipboard operation
elit copied to clipboard

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

Open ag91 opened this issue 4 years ago • 1 comments

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!

ag91 avatar Nov 08 '21 22:11 ag91

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.

hankcs avatar Jan 19 '22 21:01 hankcs