General

Functions useful in both supervised and unsupervised contexts.

fastrtext

fastrtext: 'fastText' Wrapper for Text Classification and Word Representation

Rcpp_fastrtext-class

Rcpp_fastrtext class

load_model()

Load an existing fastText trained model

execute()

Execute command on fastText model (including training)

get_parameters()

Export hyper parameters

print_help()

Print help

Supervised learning

Function useful for text classification.

predict(<Rcpp_fastrtext>)

Get predictions (for supervised model)

get_hamming_loss()

Hamming loss

get_labels()

Get list of labels (supervised model)

Unsupervised learning

Functions useful to play with word representations.

get_word_vectors()

Get word embeddings

get_word_distance()

Distance between two words

get_nn()

Get nearest neighbour vectors

get_dictionary()

Get list of known words

data

Data embedded in the package for help and tests.

train_sentences

Sentence corpus - train part

test_sentences

Sentence corpus - test part

stop_words_sentences

Stop words list