This package is a simple wrapper that calls Alpino (a Dutch dependency parser; see https://www.let.rug.nl/vannoord/alp) from R as a system call.
You need to either set the ALPINO_HOME environment variable to point to your Alpino installation, or specify it with the call.
Install rsyntax and Rpino from github:
devtools::install_github("vanatteveldt/rsyntax")
devtools::install_github("vanatteveldt/Rpino")
tokens = Rpino::parse.Alpino(c("Jan houdt van taart", "Ik ook"))
tokens
sentence
id
lemma
word
start
pos
pos_spec
type
parent
relation
2
1
1
Jan
Jan
0
name
name(PER)
[rnum=sg]:proper_name(sg,PER)
2
su
3
1
2
houd
houdt
1
verb
verb(pc_pp(van))
[stype=declarative]:verb(hebben,sg3,pc_pp(van))
NA
hd
4
1
3
van
van
2
prep
prep
[]:preposition(van,[af,uit,vandaan,[af,aan]])
2
pc
5
1
4
taart
taart
3
noun
noun
[rnum=sg]:noun(de,count,sg)
3
obj1
7
2
5
ik
Ik
0
pron
pron(nwh)
[rnum=sg]:pronoun(nwh,fir,sg,de,nom,def)
NA
hd
8
2
6
ook
ook
1
adv
adv(postnp)
[]:postnp_adverb
5
mod
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.