fastrtext v0.3.3


Monthly downloads



'fastText' Wrapper for Text Classification and Word Representation

Learning text representations and text classifiers may rely on the same simple and efficient approach. 'fastText' is an open-source, free, lightweight library that allows users to perform both tasks. It transforms text into continuous vectors that can later be used on many language related task. It works on standard, generic hardware (no 'GPU' required). It also includes model size reduction feature. 'fastText' original source code is available at <>.

Functions in fastrtext

Name Description
print_help Print help
get_hamming_loss Hamming loss
train_sentences Sentence corpus - train part
get_word_ids Retrieve word IDs
get_word_vectors Get word embeddings
get_labels Get list of labels (supervised model)
load_model Load an existing fastText trained model
test_sentences Sentence corpus - test part
stop_words_sentences Stop words list
build_vectors Build fasttext vectors
get_nn Get nearest neighbour vectors
get_parameters Export hyper parameters
fastrtext fastrtext: 'fastText' Wrapper for Text Classification and Word Representation
get_dictionary Get list of known words
execute Execute command on fastText model (including training)
get_sentence_representation Get sentence embedding
get_tokenized_text Tokenize text
Rcpp_fastrtext-class Rcpp_fastrtext class
add_prefix Add a prefix to each word
predict.Rcpp_fastrtext Get predictions (for supervised model)
add_tags Add tags to documents
get_word_distance Distance between two words
build_supervised Build a supervised fasttext model
No Results!

Vignettes of fastrtext

No Results!

Last month downloads


Type Package
Date 2019-05-30
License MIT + file LICENSE
LinkingTo Rcpp
LazyData true
VignetteBuilder knitr
RoxygenNote 6.1.1
Encoding UTF-8
NeedsCompilation yes
Packaged 2019-05-30 07:12:57 UTC; geantvert
Repository CRAN
Date/Publication 2019-05-30 07:50:03 UTC

Include our badge in your README