Downloads · 30 days
49
4% of all-time downloads
paulhindemith/fasttext-classification
fasttext-classification is a zero-shot classification model from paulhindemith. Use it when you need labels you did not train the model on. It is set up for transformers. The card lists the license as cc-by-sa-3.0.
Downloads · 30 days
49
4% of all-time downloads
All-time downloads
1.2K
Public
Repo size
2.4 GB
Likes
0
Public
Click a slice to open those files.
.bin2.4 GB · 99%
From the Hugging Face model README
This model is experimental.
fastText word vector base classification
Google Colaboratory Example
! apt install aptitude swig > /dev/null
! aptitude install mecab libmecab-dev mecab-ipadic-utf8 git make curl xz-utils file -y > /dev/null
! pip install transformers torch mecab-python3 torchtyping > /dev/null
! ln -s /etc/mecabrc /usr/local/etc/mecabrc
from transformers import pipeline
p = pipeline("zero-shot-classification", "paulhindemith/fasttext-classification", revision="2022.11.13", trust_remote_code=True)
p("海賊王におれはなる", candidate_labels=["海","山","陸"], hypothesis_template="{}", multi_label=True)
This model utilizes the folllowing pretrained vectors.
Name: fastText
Credit: https://fasttext.cc/
License: Creative Commons Attribution-Share-Alike License 3.0
Link: https://dl.fbaipublicfiles.com/fasttext/vectors-wiki/wiki.ja.vec