Repository navigation
Expand file tree
/
Copy pathdata.r
More file actions
138 lines (130 loc) · 5.26 KB
/
Copy pathdata.r
File metadata and controls
138 lines (130 loc) · 5.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
#' multilingual stopwords from https://github.com/stopwords-iso/stopwords-iso
#'
#' The Stopwords ISO Dataset is the most comprehensive collection of stopwords
#' for multiple languages. The collection follows the ISO 639-1 language code.
#' @usage NULL
#' @section Usage:
#' `stopwords(language, source = "stopwords-iso")`
#' @format A named list of length 57, of character vectors that represent
#' stopwords in 57 languages. To see the languages available, use
#' [stopwords_getlanguages()].
#' @source <https://github.com/stopwords-iso/stopwords-iso/>
"data_stopwords_stopwordsiso"
#' snowball stopword list
#'
#' @usage NULL
#' @section Usage:
#' `stopwords(language, source = "snowball")`
#' @details Provides stopword lists in multiple
#' languages, based on the Snowball stemmer's word lists.
#' @source
#' The main stopword lists are taken from the Snowball stemmer project in
#' different languages (see <https://snowballstem.org/projects.html>).
#'
#' The stopword lists can be found in <http://snowball.tartarus.org/dist/snowball_all.tgz>.
#' @seealso [stopwords()]
"data_stopwords_snowball"
#' miscellaneous stopword lists
#'
#' Other, miscellaneous stopword lists.
#' @usage NULL
#' @section Usage:
#' `stopwords(language, source = "misc")`
#' @source
#' The Arabic stopwords come from
#' <https://sites.google.com/site/kevinbouge/stopwords-lists>.
#'
#' The Catalan stopwords come from
#' <http://latel.upf.edu/morgana/altres/pub/ca_stop.htm>.
#'
#' The Greek stopwords were supplied by Carsten Schwemmer (see
#' <https://github.com/quanteda/quanteda/issues/282>).
#'
#' The Gujarati stopwords are taken from
#' <https://github.com/gujarati-ir/Gujarati-Stop-Words> and modified by
#' Chandrakant Bhogayata.
#'
#' The Chinese stopwords are taken from the
#' Baidu stopword list (see http://www.baiduguide.com/baidu-stopwords/).
"data_stopwords_misc"
#' stopword lists from the SMART system
#'
#' The stopword lists based on the SMART (System for the Mechanical Analysis and
#' Retrieval of Text) Information Retrieval System, an information retrieval
#' system developed at Cornell University in the 1960s.
#' @usage NULL
#' @section Usage:
#' `stopwords(language = "en", source = "smart")`
#' @source
#' The English stopword list is taken from the [online appendix
#' 11](http://www.ai.mit.edu/projects/jmlr/papers/volume5/lewis04a/a11-smart-stop-list/english.stop)
#' of Lewis et. al. (2004).
#' @references
#' Lewis, David D., et al. (2004) "[Rcv1: A new benchmark collection for text
#' categorization
#' research.](https://www.jmlr.org/papers/volume5/lewis04a/lewis04a.pdf)"
#' *Journal of machine learning research* 5: 361-397.
"data_stopwords_smart"
#' stopword lists including parts-of-speech
#'
#' Stopword lists that include specific parts of speech, maintained by Kohei
#' Watanabe.
#'
#' These are multi-level lists, in the original data. If you wish to use them
#' as lists, please access the data object directly.
#' @usage NULL
#' @section Usage: `stopwords(language = "en", source = "marimo")`
#' @source The English version was adopted from the Snowball collection, and then
#' extended and translated into other languages by contributors. Names of
#' contributors are in the header of the [original YAML
#' files](https://github.com/koheiw/marimo/tree/master/yaml).
#' @examples
#' # access English pronouns directly
#' stopwords::data_stopwords_marimo$en$pronoun
#'
"data_stopwords_marimo"
#' stopword lists for ancient languages
#'
#' Stopword lists for ancient Greek and Latin. These lists are far more
#' extensive than the [Perseus lists][data_stopwords_perseus] for ancient Greek
#' and Latin from the Perseus Digital Library.
#'
#' As there is no 2-letter code for ancient Greek in ISO-639-1, we use "grc" to
#' denote Greek (as per [ISO-639-3](https://iso639-3.sil.org/code/grc)).
#' @usage NULL
#' @section Usage:
#' `stopwords(language = "grc", source = "ancient")`
#'
#' `stopwords(language = "la", source = "ancient")`
#' @source Aurélien Berra, Ancient Greek and Latin stopwords,
#' `doi: 10.5281/zenodo.1165205`. See
#' [https://github.com/aurelberra/stopwords/blob/master/rationale.md]().
#' @seealso [data_stopwords_perseus]
"data_stopwords_ancient"
#' stopword lists for ancient languages - Perseus Digital Library
#'
#' Stopword lists for ancient Greek and Latin. As there is no
#' 2-letter code for ancient Greek in ISO-639-1, we use "grc" to denote Greek
#' (as per [ISO-639-3](https://iso639-3.sil.org/code/grc)).
#' @usage NULL
#' @section Usage:
#' `stopwords(language = "grc", source = "perseus")`
#'
#' `stopwords(language = "la", source = "perseus")`
#' @source The [Perseus Digital Library](https://www.perseus.tufts.edu/hopper/).
#' See [https://wiki.digitalclassicist.org/Stopwords_for_Greek_and_Latin]() and
#' [https://wiki.digitalclassicist.org/Perseus_Digital_Library]().
"data_stopwords_perseus"
#' stopword lists from the Python NLTK library
#'
#' Stopword lists for 23 languages from the Python NLTK library.
#'
#' @usage NULL
#' @section Usage:
#' `stopwords(language = "en", source = "nltk")`
#' @source
#' https://github.com/nltk/nltk_data/blob/gh-pages/packages/corpora/stopwords.zip
#' @references
#' Bird, Steven, Edward Loper and Ewan Klein (2009). Natural Language Processing
#' with Python. O'Reilly Media Inc.
"data_stopwords_nltk"