Created
February 6, 2020 16:26
-
-
Save methyl/217597128cbda6d3aede1f6eae4d4b7a to your computer and use it in GitHub Desktop.
Extract entities from Google NLP API demo - surferseo.com
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
// just paste it in your chrome developer tools console | |
txt = "When Would I Need a ⟨Survival Knife⟩" | |
console.log(Array.from(txt.matchAll(/⟨(.+?)⟩/g)).map(a => a[1]).join("\n")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment