R/RcppExports.R

Defines functions give_args_fasttext printDumpUsage printAnalogiesUsage printNNUsage printPrintNgramsUsage printPrintSentenceVectorsUsage printPrintWordVectorsUsage printTestLabelUsage printPredictUsage printTestUsage printQuantizeUsage printUsage

Documented in give_args_fasttext printAnalogiesUsage printDumpUsage printNNUsage printPredictUsage printPrintNgramsUsage printPrintSentenceVectorsUsage printPrintWordVectorsUsage printQuantizeUsage printTestLabelUsage printTestUsage printUsage

# 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))
}

Try the fastText package in your browser

Any scripts or data that you put into this service are public.

fastText documentation built on May 29, 2024, 3:37 a.m.