commit | 8a82af74c2b45f65191c691e41b21947913ffa25 | [log] [tgz] |
---|---|---|
author | Marc Kupietz <kupietz@ids-mannheim.de> | Thu Dec 12 12:58:22 2019 +0100 |
committer | Marc Kupietz <kupietz@ids-mannheim.de> | Thu Dec 12 12:58:22 2019 +0100 |
tree | e23b2f3d02c63792b3b1ab350abc331eeaaf08bf | |
parent | 59e449b05f77f0433a26780dd6cd1554603961a7 [diff] |
Increase default timeout to 110s Change-Id: Ia224c4b15cd144be4bb9163697762b2da64b61c0
Simple R package to access the web service API of the KorAP Corpus Analysis Platform devloped at the IDS Mannheim
This packgage is in its early stages and not stable yet! In particular, please expect that, at this early stage, objects, functions, parameters as well as their names or identifiers will still change continuously without any notification. Use it on your own risk!
At this point there is no binary package on CRAN yet, so you have to install the development version from our Gerrit server using the devtool package:
# install.packages("devtools") library(devtools) install_git("https://korap.ids-mannheim.de/gerrit/KorAP/RKorAPClient") library(RKorAPClient) ?corpusQuery ?frequencyQuery
library(RKorAPClient) new("KorAPConnection", verbose=TRUE) %>% corpusQuery("Hello world") %>% fetchAll()
library(RKorAPClient) library(ggplot2) kco <- new("KorAPConnection", verbose=TRUE) expand_grid(condition = c("textDomain = /Wirtschaft.*/", "textDomain != /Wirtschaft.*/"), year = (2002:2018)) %>% cbind(frequencyQuery(kco, "[tt/l=Heuschrecke]", paste0(.$condition," & pubDate in ", .$year))) %>% ipm() %>% ggplot(aes(x = year, y = ipm, fill = condition, colour = condition)) + geom_freq_by_year_ci()
More elaborate R scripts demonstrating the use of the package can be found in the demo folder.
Authors: Marc Kupietz
Copyright (c) 2019, IDS Mannheim, Germany
This package is developed as part of the KorAP Corpus Analysis Platform at the Leibniz Institute for German Language (IDS).
It is published under the BSD-2 License.
Contributions are very welcome!
Your contributions should ideally be committed via our Gerrit server to facilitate reviewing (see Gerrit Code Review - A Quick Introduction if you are not familiar with Gerrit). However, we are also happy to accept comments and pull requests via GitHub.
Please note that unless you explicitly state otherwise any contribution intentionally submitted for inclusion into this software shall – as this software itself – be under the BSD-2 License.
Kupietz, Marc / Margaretha, Eliza / Diewald, Nils / Lüngen, Harald / Fankhauser, Peter (2019): What’s New in EuReCo? Interoperability, Comparable Corpora, Licensing. In: Bański, Piotr/Barbaresi, Adrien/Biber, Hanno/Breiteneder, Evelyn/Clematide, Simon/Kupietz, Marc/Lüngen, Harald/Iliadi, Caroline (Hrsg.): Proceedings of the Internation Corpus Linguistics Conference 2019 Workshop "Challenges in the Management of Large Corpora (CMLC-7)", 22nd of July Mannheim: Leibniz-Institut für Deutsche Sprache,33-39.