Overview of smartpipe semantic pipes
stdin/stdout composition. By default, each line of a text file is treated as one item, but the --as file flag can be used to treat a whole file as a single item.cat reviews.txt \
| smartpipe filter "the reviewer is sarcastic" \
| smartpipe map "Extract {product, complaint, anger number: 0 to 1}"