Marc Kupietz | b7a3805 | 2025-06-24 16:53:22 +0200 | [diff] [blame] | 1 | #' R Client for KorAP Corpus Analysis Platform |
| 2 | #' |
| 3 | #' @description |
| 4 | #' RKorAPClient provides programmatic access to KorAP corpus analysis platform instances, |
| 5 | #' enabling corpus linguistic research on large corpora like DeReKo, CoRoLa, DeLiKo@@DNB. |
| 6 | #' |
| 7 | #' @section Main Functions: |
| 8 | #' \describe{ |
| 9 | #' \item{Connection}{`KorAPConnection()`, `auth()`, `persistAccessToken()`} |
| 10 | #' \item{Search}{`corpusQuery()`, `fetchAll()`, `fetchNext()`} |
| 11 | #' \item{Analysis}{`corpusStats()`, `frequencyQuery()`, `collocationAnalysis()`} |
| 12 | #' } |
| 13 | #' |
| 14 | #' @section Quick Start: |
| 15 | #' ```r |
| 16 | #' library(RKorAPClient) |
| 17 | #' # Connect and search |
| 18 | #' kcon <- KorAPConnection() |
| 19 | #' query <- corpusQuery(kcon, "Ameisenplage") |
| 20 | #' results <- fetchAll(query) |
| 21 | #' |
| 22 | #' # Access results |
| 23 | #' results@collectedMatches |
| 24 | #' results@totalResults |
| 25 | #' ``` |
| 26 | #' |
| 27 | #' @section Common Workflows: |
| 28 | #' |
| 29 | #' **Basic Search:** |
| 30 | #' ```r |
| 31 | #' kcon <- KorAPConnection() |
| 32 | #' kcon |> corpusQuery("search term") |> fetchAll() |
| 33 | #' ``` |
| 34 | #' |
| 35 | #' **Frequency Analysis:** |
| 36 | #' ```r |
| 37 | #' frequencyQuery(kcon, c("term1", "term2"), vc="pubDate in 2020") |
| 38 | #' ``` |
| 39 | #' |
| 40 | #' **Corpus Statistics:** |
| 41 | #' ```r |
| 42 | #' corpusStats(kcon, vc="textType=Zeitung", as.df=TRUE) |
| 43 | #' ``` |
| 44 | #' |
Marc Kupietz | a6e4ee6 | 2021-03-05 09:00:15 +0100 | [diff] [blame] | 45 | #' @references |
Marc Kupietz | 92a2848 | 2021-03-05 10:50:32 +0100 | [diff] [blame] | 46 | #' Kupietz, Marc / Diewald, Nils / Margaretha, Eliza (2020): |
| 47 | #' RKorAPClient: An R package for accessing the German Reference Corpus DeReKo |
| 48 | #' via KorAP. In: Calzolari, Nicoletta, Frédéric Béchet, Philippe Blache, |
| 49 | #' Khalid Choukri, Christopher Cieri, Thierry Declerck, Sara Goggi, |
| 50 | #' Hitoshi Isahara, Bente Maegaard, Joseph Mariani, Hélène Mazo, |
| 51 | #' Asuncion Moreno, Jan Odijk, Stelios Piperidis (eds.): |
| 52 | #' Proceedings of The 12th Language Resources and Evaluation Conference (LREC 2020) |
| 53 | #' Marseille: European Language Resources Association (ELRA), 7017-7023. |
| 54 | #' \url{http://www.lrec-conf.org/proceedings/lrec2020/pdf/2020.lrec-1.867.pdf} |
Marc Kupietz | a6e4ee6 | 2021-03-05 09:00:15 +0100 | [diff] [blame] | 55 | #' |
| 56 | #' @keywords internal |
| 57 | "_PACKAGE" |
| 58 | #' [1] "_PACKAGE" |
| 59 | #' |