Marc Kupietz | a6e4ee6 | 2021-03-05 09:00:15 +0100 | [diff] [blame] | 1 | % Generated by roxygen2: do not edit by hand |
| 2 | % Please edit documentation in R/RKorAPClient-package.R |
| 3 | \docType{package} |
| 4 | \name{RKorAPClient-package} |
| 5 | \alias{RKorAPClient} |
| 6 | \alias{RKorAPClient-package} |
Marc Kupietz | b7a3805 | 2025-06-24 16:53:22 +0200 | [diff] [blame] | 7 | \title{R Client for KorAP Corpus Analysis Platform} |
Marc Kupietz | a6e4ee6 | 2021-03-05 09:00:15 +0100 | [diff] [blame] | 8 | \description{ |
Marc Kupietz | b7a3805 | 2025-06-24 16:53:22 +0200 | [diff] [blame] | 9 | RKorAPClient provides programmatic access to KorAP corpus analysis platform instances, |
| 10 | enabling corpus linguistic research on large corpora like DeReKo, CoRoLa, DeLiKo@DNB. |
Marc Kupietz | a6e4ee6 | 2021-03-05 09:00:15 +0100 | [diff] [blame] | 11 | } |
Marc Kupietz | b7a3805 | 2025-06-24 16:53:22 +0200 | [diff] [blame] | 12 | \section{Main Functions}{ |
| 13 | |
| 14 | \describe{ |
| 15 | \item{Connection}{\code{KorAPConnection()}, \code{auth()}, \code{persistAccessToken()}} |
| 16 | \item{Search}{\code{corpusQuery()}, \code{fetchAll()}, \code{fetchNext()}} |
| 17 | \item{Analysis}{\code{corpusStats()}, \code{frequencyQuery()}, \code{collocationAnalysis()}} |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | \section{Quick Start}{ |
| 22 | |
| 23 | |
| 24 | \if{html}{\out{<div class="sourceCode r">}}\preformatted{library(RKorAPClient) |
| 25 | # Connect and search |
| 26 | kcon <- KorAPConnection() |
| 27 | query <- corpusQuery(kcon, "Ameisenplage") |
| 28 | results <- fetchAll(query) |
| 29 | |
| 30 | # Access results |
| 31 | results@collectedMatches |
| 32 | results@totalResults |
| 33 | }\if{html}{\out{</div>}} |
| 34 | } |
| 35 | |
| 36 | \section{Common Workflows}{ |
| 37 | |
| 38 | |
| 39 | \strong{Basic Search:} |
| 40 | |
| 41 | \if{html}{\out{<div class="sourceCode r">}}\preformatted{kcon <- KorAPConnection() |
| 42 | kcon |> corpusQuery("search term") |> fetchAll() |
| 43 | }\if{html}{\out{</div>}} |
| 44 | |
| 45 | \strong{Frequency Analysis:} |
| 46 | |
| 47 | \if{html}{\out{<div class="sourceCode r">}}\preformatted{frequencyQuery(kcon, c("term1", "term2"), vc="pubDate in 2020") |
| 48 | }\if{html}{\out{</div>}} |
| 49 | |
| 50 | \strong{Corpus Statistics:} |
| 51 | |
| 52 | \if{html}{\out{<div class="sourceCode r">}}\preformatted{corpusStats(kcon, vc="textType=Zeitung", as.df=TRUE) |
| 53 | }\if{html}{\out{</div>}} |
| 54 | } |
| 55 | |
Marc Kupietz | a6e4ee6 | 2021-03-05 09:00:15 +0100 | [diff] [blame] | 56 | \references{ |
Marc Kupietz | 92a2848 | 2021-03-05 10:50:32 +0100 | [diff] [blame] | 57 | Kupietz, Marc / Diewald, Nils / Margaretha, Eliza (2020): |
| 58 | RKorAPClient: An R package for accessing the German Reference Corpus DeReKo |
| 59 | via KorAP. In: Calzolari, Nicoletta, Frédéric Béchet, Philippe Blache, |
| 60 | Khalid Choukri, Christopher Cieri, Thierry Declerck, Sara Goggi, |
| 61 | Hitoshi Isahara, Bente Maegaard, Joseph Mariani, Hélène Mazo, |
| 62 | Asuncion Moreno, Jan Odijk, Stelios Piperidis (eds.): |
| 63 | Proceedings of The 12th Language Resources and Evaluation Conference (LREC 2020) |
| 64 | Marseille: European Language Resources Association (ELRA), 7017-7023. |
| 65 | \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] | 66 | } |
| 67 | \seealso{ |
| 68 | Useful links: |
| 69 | \itemize{ |
| 70 | \item \url{https://github.com/KorAP/RKorAPClient/} |
| 71 | \item \url{https://korap.ids-mannheim.de/} |
Marc Kupietz | 67edcb5 | 2021-09-20 21:54:24 +0200 | [diff] [blame] | 72 | \item \url{https://www.ids-mannheim.de/digspra/kl/projekte/korap} |
Marc Kupietz | a6e4ee6 | 2021-03-05 09:00:15 +0100 | [diff] [blame] | 73 | \item Report bugs at \url{https://github.com/KorAP/RKorAPClient/issues} |
| 74 | } |
| 75 | |
| 76 | } |
| 77 | \author{ |
| 78 | \strong{Maintainer}: Marc Kupietz \email{kupietz@ids-mannheim.de} |
| 79 | |
| 80 | Other contributors: |
| 81 | \itemize{ |
| 82 | \item Nils Diewald \email{diewald@ids-mannheim.de} [contributor] |
| 83 | \item Leibniz Institute for the German Language [copyright holder, funder] |
| 84 | } |
| 85 | |
| 86 | } |
| 87 | \keyword{internal} |