learntextvis / textkit

Command line tool for manipulating and analyzing text
MIT License
28 stars 6 forks source link

Some(?) scripts don't read from stdin? #47

Open Fil opened 7 years ago

Fil commented 7 years ago

textkit text2words text.txt ok textkit text2words < text.txt NOK cat text.txt | textkit text2words NOK

It's not always obvious how to use commands, as some expect file names, other accept streams, etc. The documentation is not explicit on this point: "With no file passed in, many textkit commands default to standard in. This can be indicated explicitly by using a dash (-) to indicate standard in."

(I haven't found how to use text2words on STDIN.)

Fil commented 7 years ago

another example is that tokens2json does not work like tokens2counts