blob: c8a323e6c9ca80c28dfcd97718856655b4c86efb [file] [log] [blame]
Marc Kupietzdbd431a2021-08-29 12:17:45 +02001library(RKorAPClient)
2library(knitr)
3new("KorAPConnection", verbose = TRUE) %>%
4 collocationAnalysis(
5 "focus(in [tt/p=NN] {[tt/l=setzen]})",
6 leftContextSize = 1,
7 rightContextSize = 0,
8 exactFrequencies = FALSE,
9 searchHitsSampleLimit = 1000,
10 topCollocatesLimit = 20
11 ) %>%
12 mutate(LVC = sprintf("[in %s setzen](%s)", collocate, webUIRequestUrl)) %>%
13 select(LVC, logDice, pmi, ll) %>%
14 head(10) %>%
15 kable(format="pipe", digits=2) %>%
16 cat(file="/tmp/in_setzen.md", sep="\n")
17
18#rmarkdown::render("/tmp/in_setzen.md")
19#browseURL("/tmp/in_setzen.html")
20