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} |
| 29 | knitr::opts_chunk$set(dev = 'svg', echo = FALSE, warning = FALSE) |
| 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 | 9087c77 | 2023-06-27 18:11:26 +0200 | [diff] [blame^] | 36 | ## Romanian |
| 37 | |
| 38 | ```{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] | 39 | pune_in_ca_de = readRDS("pune_in_CA_de.rds") |
Marc Kupietz | 9087c77 | 2023-06-27 18:11:26 +0200 | [diff] [blame^] | 40 | pune_in_ca_de %>% show_simple_table_tr(10) |
Marc K | 6626400 | 2023-06-27 13:29:38 +0200 | [diff] [blame] | 41 | ``` |
| 42 | |
Marc Kupietz | df5fda1 | 2023-06-27 15:27:41 +0200 | [diff] [blame] | 43 | # Hungarian |
Marc K | 6626400 | 2023-06-27 13:29:38 +0200 | [diff] [blame] | 44 | |
Marc Kupietz | df5fda1 | 2023-06-27 15:27:41 +0200 | [diff] [blame] | 45 | ```{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]})'} |
| 46 | hoz1 <- readRDS("hoz.Rda") |
| 47 | hoz1 %>% |
| 48 | mutate(collocation=sprintf('<a href="%s">%s</a>', webUIRequestUrl, example)) %>% |
| 49 | select(collocation, EN, logDice, pmi, ll) %>% |
| 50 | dplyr::arrange(desc(logDice)) %>% |
| 51 | dplyr::rename("LVC example" = "collocation") %>% |
| 52 | dplyr::rename("EN (DeepL)" = "EN") %>% |
| 53 | # head(50) %>% |
| 54 | datatable(escape = F, |
| 55 | extensions = c('Buttons'), |
| 56 | rownames = FALSE, |
| 57 | options = list( |
| 58 | buttons = c('copy', 'csv', 'excel', 'pdf', 'print'), |
| 59 | pageLength = 10, |
| 60 | dom = '' |
| 61 | )) %>% |
| 62 | formatRound(columns=~logDice + pmi + ll, digits=1) |
| 63 | ``` |
Marc Kupietz | 686c431 | 2023-06-23 15:41:44 +0200 | [diff] [blame] | 64 | |
Marc Kupietz | 064d46a | 2023-06-27 18:10:41 +0200 | [diff] [blame] | 65 | ## Polish |
Marc Kupietz | 686c431 | 2023-06-23 15:41:44 +0200 | [diff] [blame] | 66 | |
Marc Kupietz | 686c431 | 2023-06-23 15:41:44 +0200 | [diff] [blame] | 67 | |
Marc Kupietz | 064d46a | 2023-06-27 18:10:41 +0200 | [diff] [blame] | 68 | ### da(wa)?ć + NOUN |
| 69 | |
| 70 | ```{r dac_ca_code, echo=TRUE, results = 'hide'} |
| 71 | new("KorAPConnection", |
| 72 | KorAPUrl = "https://korap.ids-mannheim.de/instance/nkjp1m-sgjp") %>% |
Marc Kupietz | 686c431 | 2023-06-23 15:41:44 +0200 | [diff] [blame] | 73 | collocationAnalysis( |
Marc Kupietz | 064d46a | 2023-06-27 18:10:41 +0200 | [diff] [blame] | 74 | 'focus({[nkjp/l="da(wa)?ć"] []{,5}} [ud/p=NOUN])', |
| 75 | leftContextSize = 0, |
| 76 | rightContextSize = 1, # relative to { ... } in focus(), |
| 77 | addExamples = TRUE |
| 78 | ) |
Marc Kupietz | 686c431 | 2023-06-23 15:41:44 +0200 | [diff] [blame] | 79 | ``` |
Marc Kupietz | 064d46a | 2023-06-27 18:10:41 +0200 | [diff] [blame] | 80 | ```{r dac_ca_result, echo=FALSE} |
Marc Kupietz | 686c431 | 2023-06-23 15:41:44 +0200 | [diff] [blame] | 81 | collocationAnalysis( |
| 82 | nkjp, |
Marc Kupietz | 064d46a | 2023-06-27 18:10:41 +0200 | [diff] [blame] | 83 | 'focus({[nkjp/l="da(wa)?ć"] []{,5}} [ud/p=NOUN])', |
Marc Kupietz | 686c431 | 2023-06-23 15:41:44 +0200 | [diff] [blame] | 84 | leftContextSize = 0, |
| 85 | rightContextSize = 1, # relative to { ... } in focus(), |
Marc Kupietz | 686c431 | 2023-06-23 15:41:44 +0200 | [diff] [blame] | 86 | addExamples = TRUE |
| 87 | ) %>% |
Marc Kupietz | 3a91b3b | 2023-06-27 18:09:35 +0200 | [diff] [blame] | 88 | mutate(example=str_replace(example, "(</mark>)(\\W?\\w+)", "\\2\\1")) %>% |
Marc Kupietz | 686c431 | 2023-06-23 15:41:44 +0200 | [diff] [blame] | 89 | show_table() |
Marc Kupietz | 064d46a | 2023-06-27 18:10:41 +0200 | [diff] [blame] | 90 | ``` |