cloudyr / aws.comprehend

AWS Comprehend Client

Home Page:https://cran.r-project.org/package=aws.comprehend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

detect_syntax for syntax analysis

antoine-sachet opened this issue · comments

AWS now offers a syntax analysis service which should be integrated in a detect_syntax function.

Expected output:

detect_syntax("The quick fox jumps over the lazy dog.")
##   Index BeginOffset EndOffset PartOfSpeech.Score PartOfSpeech.Tag  Text TokenId
## 1     1           0         3          0.9999670              DET   The       1
## 2     1           4         9          0.9966556              ADJ quick       2
## 3     1          10        13          0.9957780             NOUN   fox       3
## 4     1          14        19          0.8895551             VERB jumps       4
## 5     1          20        24          0.9910401              ADP  over       5
## 6     1          25        28          0.9999968              DET   the       6
## 7     1          29        33          0.9885939              ADJ  lazy       7
## 8     1          34        37          0.9999415             NOUN   dog       8
## 9     1          37        38          0.9999982            PUNCT     .       9