Marc Kupietz | 686c431 | 2023-06-23 15:41:44 +0200 | [diff] [blame] | 1 | --- |
| 2 | title: "Assembling EuReCo for Contrastive Research" |
| 3 | subtitle: "The Polish Piece" |
| 4 | author: |
| 5 | - name: Piotr Bański |
| 6 | - name: Nils Diewald |
| 7 | - name: Marc Kupietz |
| 8 | - name: Beata Trawiński |
| 9 | affiliation: |
| 10 | address: IDS Mannheim |
| 11 | column_numbers: 2 |
| 12 | contact: |
| 13 | name: Piotr Bański |
Marc K | 4853d6a | 2023-06-24 18:27:47 +0200 | [diff] [blame] | 14 | department: Digital Linguistics / Grammar |
Marc Kupietz | 686c431 | 2023-06-23 15:41:44 +0200 | [diff] [blame] | 15 | email: banski@ids-mannheim.de |
Marc K | 4853d6a | 2023-06-24 18:27:47 +0200 | [diff] [blame] | 16 | website: "https://www.ids-mannheim.de/" |
| 17 | qrlink: > |
Marc K | f8c3ccd | 2023-06-27 13:30:08 +0200 | [diff] [blame] | 18 | `r posterdown::qrlink("https://korap.ids-mannheim.de/instance/nkjp1m-sgjp", logo="kalamar_wbg.svg")` |
Marc Kupietz | 686c431 | 2023-06-23 15:41:44 +0200 | [diff] [blame] | 19 | output: |
| 20 | posterdown::posterdown_ids: |
| 21 | self_contained: false |
| 22 | keep_md: true |
| 23 | |
| 24 | bibliography: references.bib |
| 25 | csl: "https://raw.githubusercontent.com/ICLC-10/Zotero/master/styles/ICLC-10.csl" |
| 26 | --- |
| 27 | |
| 28 | ```{r setup, include=FALSE, echo=FALSE, message=FALSE, warning=FALSE} |
Marc Kupietz | 4e33d11 | 2023-06-27 18:11:46 +0200 | [diff] [blame] | 29 | knitr::opts_chunk$set(dev = 'svg', echo = FALSE, warning = FALSE, message = FALSE) |
Marc Kupietz | 686c431 | 2023-06-23 15:41:44 +0200 | [diff] [blame] | 30 | source("common.R") |
| 31 | ``` |
Marc Kupietz | 9087c77 | 2023-06-27 18:11:26 +0200 | [diff] [blame] | 32 | # Pilot study: LVC detetction |
Marc K | 6626400 | 2023-06-27 13:29:38 +0200 | [diff] [blame] | 33 | |
Marc Kupietz | 9087c77 | 2023-06-27 18:11:26 +0200 | [diff] [blame] | 34 | Identification of Light Verb Constructions using collocation analysis. |
Marc K | 6626400 | 2023-06-27 13:29:38 +0200 | [diff] [blame] | 35 | |
Marc Kupietz | 7c544c2 | 2023-06-28 06:35:12 +0200 | [diff] [blame^] | 36 | ## German |
| 37 | |
| 38 | ```{r setzen-in, fig.cap='Collocation analysis for »in … setzen« (= to put in NN) in DeReKo'} |
| 39 | # setzen_ca <- new("KorAPConnection", verbose = TRUE) %>% |
| 40 | # collocationAnalysis( |
| 41 | # "focus(in [tt/p=NN] {[tt/l=setzen]})", |
| 42 | # leftContextSize = 1, |
| 43 | # rightContextSize = 0, |
| 44 | # addExamples = TRUE |
| 45 | # ) |
| 46 | setzen_ca <- readRDS("in_NN_setzen.rds") |
| 47 | setzen_ca %>% show_table() |
| 48 | ``` |
| 49 | |
Marc Kupietz | 9087c77 | 2023-06-27 18:11:26 +0200 | [diff] [blame] | 50 | ## Romanian |
| 51 | |
| 52 | ```{r pune-in, fig.cap='Collocation analysis for »pune în NN« (= to put in NN) in CoRoLa.'} |
Marc K | 6626400 | 2023-06-27 13:29:38 +0200 | [diff] [blame] | 53 | pune_in_ca_de = readRDS("pune_in_CA_de.rds") |
Marc Kupietz | 9087c77 | 2023-06-27 18:11:26 +0200 | [diff] [blame] | 54 | pune_in_ca_de %>% show_simple_table_tr(10) |
Marc K | 6626400 | 2023-06-27 13:29:38 +0200 | [diff] [blame] | 55 | ``` |
| 56 | |
Marc Kupietz | 4e33d11 | 2023-06-27 18:11:46 +0200 | [diff] [blame] | 57 | ## Hungarian |
Marc K | 6626400 | 2023-06-27 13:29:38 +0200 | [diff] [blame] | 58 | |
Marc Kupietz | df5fda1 | 2023-06-27 15:27:41 +0200 | [diff] [blame] | 59 | ```{r hoz, fig.cap='Collocation analysis for lemma hoz (=bring) with noun in sublative or illative – focus([hnc/p="FN.(SUB|ILL)"] {[hnc/l=hoz]})'} |
| 60 | hoz1 <- readRDS("hoz.Rda") |
| 61 | hoz1 %>% |
| 62 | mutate(collocation=sprintf('<a href="%s">%s</a>', webUIRequestUrl, example)) %>% |
| 63 | select(collocation, EN, logDice, pmi, ll) %>% |
| 64 | dplyr::arrange(desc(logDice)) %>% |
| 65 | dplyr::rename("LVC example" = "collocation") %>% |
Marc Kupietz | 4e33d11 | 2023-06-27 18:11:46 +0200 | [diff] [blame] | 66 | dplyr::rename("en" = "EN") %>% |
Marc Kupietz | df5fda1 | 2023-06-27 15:27:41 +0200 | [diff] [blame] | 67 | # head(50) %>% |
| 68 | datatable(escape = F, |
| 69 | extensions = c('Buttons'), |
| 70 | rownames = FALSE, |
| 71 | options = list( |
| 72 | buttons = c('copy', 'csv', 'excel', 'pdf', 'print'), |
| 73 | pageLength = 10, |
| 74 | dom = '' |
| 75 | )) %>% |
| 76 | formatRound(columns=~logDice + pmi + ll, digits=1) |
| 77 | ``` |
Marc Kupietz | 686c431 | 2023-06-23 15:41:44 +0200 | [diff] [blame] | 78 | |
Marc Kupietz | 064d46a | 2023-06-27 18:10:41 +0200 | [diff] [blame] | 79 | ## Polish |
Marc Kupietz | 686c431 | 2023-06-23 15:41:44 +0200 | [diff] [blame] | 80 | |
Marc Kupietz | 686c431 | 2023-06-23 15:41:44 +0200 | [diff] [blame] | 81 | |
Marc Kupietz | 064d46a | 2023-06-27 18:10:41 +0200 | [diff] [blame] | 82 | ### da(wa)?ć + NOUN |
| 83 | |
| 84 | ```{r dac_ca_code, echo=TRUE, results = 'hide'} |
| 85 | new("KorAPConnection", |
| 86 | KorAPUrl = "https://korap.ids-mannheim.de/instance/nkjp1m-sgjp") %>% |
Marc Kupietz | 686c431 | 2023-06-23 15:41:44 +0200 | [diff] [blame] | 87 | collocationAnalysis( |
Marc Kupietz | 064d46a | 2023-06-27 18:10:41 +0200 | [diff] [blame] | 88 | 'focus({[nkjp/l="da(wa)?ć"] []{,5}} [ud/p=NOUN])', |
| 89 | leftContextSize = 0, |
| 90 | rightContextSize = 1, # relative to { ... } in focus(), |
| 91 | addExamples = TRUE |
| 92 | ) |
Marc Kupietz | 686c431 | 2023-06-23 15:41:44 +0200 | [diff] [blame] | 93 | ``` |
Marc Kupietz | 064d46a | 2023-06-27 18:10:41 +0200 | [diff] [blame] | 94 | ```{r dac_ca_result, echo=FALSE} |
Marc Kupietz | 686c431 | 2023-06-23 15:41:44 +0200 | [diff] [blame] | 95 | collocationAnalysis( |
| 96 | nkjp, |
Marc Kupietz | 064d46a | 2023-06-27 18:10:41 +0200 | [diff] [blame] | 97 | 'focus({[nkjp/l="da(wa)?ć"] []{,5}} [ud/p=NOUN])', |
Marc Kupietz | 686c431 | 2023-06-23 15:41:44 +0200 | [diff] [blame] | 98 | leftContextSize = 0, |
| 99 | rightContextSize = 1, # relative to { ... } in focus(), |
Marc Kupietz | 686c431 | 2023-06-23 15:41:44 +0200 | [diff] [blame] | 100 | addExamples = TRUE |
| 101 | ) %>% |
Marc Kupietz | 3a91b3b | 2023-06-27 18:09:35 +0200 | [diff] [blame] | 102 | mutate(example=str_replace(example, "(</mark>)(\\W?\\w+)", "\\2\\1")) %>% |
Marc Kupietz | 686c431 | 2023-06-23 15:41:44 +0200 | [diff] [blame] | 103 | show_table() |
Marc Kupietz | 064d46a | 2023-06-27 18:10:41 +0200 | [diff] [blame] | 104 | ``` |