Skip to content

Instantly share code, notes, and snippets.

@pcolazurdo
Created November 21, 2020 23:19
Show Gist options
  • Save pcolazurdo/2d1764e9f868bd0b24552e4c8ac05cda to your computer and use it in GitHub Desktop.
Save pcolazurdo/2d1764e9f868bd0b24552e4c8ac05cda to your computer and use it in GitHub Desktop.
Use AWS Comprehend to find Names references in a Bible book
i=0 cat Revelation.json.txt| while read a
do
aws comprehend detect-entities --language-code "en" --text $a >/tmp/rev${i}.json
((i=i+1))
done
cat /tmp/*.json | jq '.Entities[].Text' | sort -u | cut -d\" -f2 | grep -e '^[A-Z].*'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment