Created
November 21, 2020 23:19
-
-
Save pcolazurdo/2d1764e9f868bd0b24552e4c8ac05cda to your computer and use it in GitHub Desktop.
Use AWS Comprehend to find Names references in a Bible book
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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