/
RcppExports.R
195 lines (182 loc) · 6.28 KB
/
RcppExports.R
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
#' Print Usage Information for all parameters
#'
#' @param verbose if TRUE then information will be printed in the console
#'
#' @return It does not return a value but only prints the available parameters of the 'printUsage' function in the R session
#' @export
#' @examples
#'
#' library(fastText)
#'
#' printUsage()
#'
printUsage <- function(verbose = TRUE) {
invisible(.Call(`_fastText_printUsage`, verbose))
}
#' Print Usage Information when the command equals to 'quantize'
#'
#' @param verbose if TRUE then information will be printed in the console
#'
#' @return It does not return a value but only prints the available parameters of the 'printQuantizeUsage' function in the R session
#' @export
#' @examples
#'
#' library(fastText)
#'
#' printQuantizeUsage()
#'
printQuantizeUsage <- function(verbose = TRUE) {
invisible(.Call(`_fastText_printQuantizeUsage`, verbose))
}
#' Print Usage Information when the command equals to 'test'
#'
#' @param verbose if TRUE then information will be printed in the console
#'
#' @return It does not return a value but only prints the available parameters of the 'printTestUsage' function in the R session
#' @export
#' @examples
#'
#' library(fastText)
#'
#' printTestUsage()
#'
printTestUsage <- function(verbose = TRUE) {
invisible(.Call(`_fastText_printTestUsage`, verbose))
}
#' Print Usage Information when the command equals to 'predict' or 'predict-prob'
#'
#' @param verbose if TRUE then information will be printed in the console
#'
#' @return It does not return a value but only prints the available parameters of the 'printPredictUsage' function in the R session
#' @export
#' @examples
#'
#' library(fastText)
#'
#' printPredictUsage()
#'
printPredictUsage <- function(verbose = TRUE) {
invisible(.Call(`_fastText_printPredictUsage`, verbose))
}
#' Print Usage Information when the command equals to 'test-label'
#'
#' @param verbose if TRUE then information will be printed in the console
#'
#' @return It does not return a value but only prints the available parameters of the 'printTestLabelUsage' function in the R session
#' @export
#' @examples
#'
#' library(fastText)
#'
#' printTestLabelUsage()
#'
printTestLabelUsage <- function(verbose = TRUE) {
invisible(.Call(`_fastText_printTestLabelUsage`, verbose))
}
#' Print Usage Information when the command equals to 'print-word-vectors'
#'
#' @param verbose if TRUE then information will be printed in the console
#'
#' @return It does not return a value but only prints the available parameters of the 'printPrintWordVectorsUsage' function in the R session
#' @export
#' @examples
#'
#' library(fastText)
#'
#' printPrintWordVectorsUsage()
#'
printPrintWordVectorsUsage <- function(verbose = TRUE) {
invisible(.Call(`_fastText_printPrintWordVectorsUsage`, verbose))
}
#' Print Usage Information when the command equals to 'print-sentence-vectors'
#'
#' @param verbose if TRUE then information will be printed in the console
#'
#' @return It does not return a value but only prints the available parameters of the 'printPrintSentenceVectorsUsage' function in the R session
#' @export
#' @examples
#'
#' library(fastText)
#'
#' printPrintSentenceVectorsUsage()
#'
printPrintSentenceVectorsUsage <- function(verbose = TRUE) {
invisible(.Call(`_fastText_printPrintSentenceVectorsUsage`, verbose))
}
#' Print Usage Information when the command equals to 'print-ngrams'
#'
#' @param verbose if TRUE then information will be printed in the console
#'
#' @return It does not return a value but only prints the available parameters of the 'printPrintNgramsUsage' function in the R session
#' @export
#' @examples
#'
#' library(fastText)
#'
#' printPrintNgramsUsage()
#'
printPrintNgramsUsage <- function(verbose = TRUE) {
invisible(.Call(`_fastText_printPrintNgramsUsage`, verbose))
}
#' Print Usage Information when the command equals to 'nn'
#'
#' @param verbose if TRUE then information will be printed in the console
#'
#' @return It does not return a value but only prints the available parameters of the 'printNNUsage' function in the R session
#' @export
#' @examples
#'
#' library(fastText)
#'
#' printNNUsage()
#'
printNNUsage <- function(verbose = TRUE) {
invisible(.Call(`_fastText_printNNUsage`, verbose))
}
#' Print Usage Information when the command equals to 'analogies'
#'
#' @param verbose if TRUE then information will be printed in the console
#'
#' @return It does not return a value but only prints the available parameters of the 'printAnalogiesUsage' function in the R session
#' @export
#' @examples
#'
#' library(fastText)
#'
#' printAnalogiesUsage()
#'
printAnalogiesUsage <- function(verbose = TRUE) {
invisible(.Call(`_fastText_printAnalogiesUsage`, verbose))
}
#' Print Usage Information when the command equals to 'dump'
#'
#' @param verbose if TRUE then information will be printed in the console
#'
#' @return It does not return a value but only prints the available parameters of the 'printDumpUsage' function in the R session
#' @export
#' @examples
#'
#' library(fastText)
#'
#' printDumpUsage()
#'
printDumpUsage <- function(verbose = TRUE) {
invisible(.Call(`_fastText_printDumpUsage`, verbose))
}
#' The Rcpp function which is used in the 'fasttext_interface' R function
#'
#' @param args the arguments that will be passed to the function in form of a character vector
#' @param pth a character string specifying the path where the process-logs (or output in generally) should be saved
#' @param MilliSecs an integer specifying the delay in milliseconds when printing the results to the specified path_output
#' @param pth_in a character string specifying the path to the input data file
#' @param queryWord either an empty string or the queryword that should be passed to the function
#' @param remove_previous_file a boolean. If TRUE, in case that the path_output is not an empty string (""), then an existing file with the same output name will be removed
#' @return It does not return a value but only saves the results to a file
#'
#' @keywords internal
#'
give_args_fasttext <- function(args, pth = "", MilliSecs = 100L, pth_in = "", queryWord = "", remove_previous_file = TRUE) {
invisible(.Call(`_fastText_give_args_fasttext`, args, pth, MilliSecs, pth_in, queryWord, remove_previous_file))
}