I am using fasttext model to predict labels for text.
Usually fasttext can classify text on word level such as:
model = fasttext.train_supervised(input="training_fasttextFormat.csv", lr=0.1, epoch=50, loss='hs', wordNgrams=2, dim=200) print(model.test('testing_fasttextFormat.csv')) But it seems that the parameter explanation in https://fasttext.cc/docs/en/options.html can do character level as well:
The following arguments for the dictionary are optional: -minCount minimal number of word occurrences [1] -minCountLabel minimal number of label occurrences [0] -wordNgrams max length of word ngram [1] -bucket number of buckets [2000000] -minn min length of char ngram [0] -maxn max length of char ngram [0] -t sampling threshold [0.0001] -label labels prefix [__label__] But I am not sure how to use these parameters to run fasttext on character level, Could anyone make an example?