Text Intelligence Commands
Basic Analysis
Section titled “Basic Analysis”dg read "Customer called about a billing issue."Analyze a File
Section titled “Analyze a File”dg read --file document.txtPiped Input
Section titled “Piped Input”cat transcript.txt | dg read
echo "Your text here" | dg readAvailable Features
Section titled “Available Features”Sentiment Analysis
Section titled “Sentiment Analysis”dg read --file document.txt --sentimentOutput includes overall document sentiment and its score.
Topic Detection
Section titled “Topic Detection”dg read --file document.txt --topicsReturns detected topics with confidence scores.
Summarization
Section titled “Summarization”dg read --file document.txt --summarizeGenerates a brief summary of the content.
Intent Recognition
Section titled “Intent Recognition”dg read --file document.txt --intentsDetects user intents within the text.
Full Analysis
Section titled “Full Analysis”dg read --file document.txt --sentiment --topics --summarize --intentsOutput Format
Section titled “Output Format”dg -o json read --file document.txt # JSON
dg -o yaml read --file document.txt # YAML
dg -o table read --file document.txt # Formatted terminal table
dg -o csv read --file document.txt # CSV-o belongs to dg itself, so it goes before the subcommand name. Without it, dg read prints human-readable output.
Use Cases
Section titled “Use Cases”Summarize Transcripts
Section titled “Summarize Transcripts”dg listen meeting.mp3 | dg read --summarizeAnalyze Customer Feedback
Section titled “Analyze Customer Feedback”dg read --file feedback.txt --sentiment --topics