Documentation
¶
Overview ¶
Command nlp provides Unix-native text analysis using Apple's NaturalLanguage framework.
Usage:
nlp <command> [flags] [file | -]
Commands:
language Detect dominant language tokens Tokenize text (words, sentences, or paragraphs) entities Extract named entities (people, places, organizations) sentiment Analyze sentiment (-1.0 to 1.0) lemma Get base forms of words
Text can be a file path, "-" for stdin, or passed via -text flag. Output is JSON.
Click to show internal directories.
Click to hide internal directories.