Phazel/fa-floret-wiki-vectors
112
fafloretwiki_200k
Persian floret static vector table: 200,000 rows x 300 dimensions, floret mode, minn=maxn=5, hashcount=2, trained with floret-torch on the full Persian Wikipedia dump for 5 epochs. Vectors only, no pipeline components. This is the table used by the fa*newslg tier.
Install
pip install https://huggingface.co/Phazel/fa-floret-wiki-vectors/resolve/main/fa_floret_wiki_200k-0.1.0-py3-none-any.whlUse
import spacy
nlp = spacy.load("fa_floret_wiki_200k")
print(nlp.vocab.vectors.shape)
print(nlp("میرود")[0].has_vector) # floret hashes subwords: always TrueTo train your own pipeline against it, unpack the wheel and point spaCy at the directory:
pip download --no-deps -d . https://huggingface.co/Phazel/fa-floret-wiki-vectors/resolve/main/fa_floret_wiki_200k-0.1.0-py3-none-any.whl
python -m spacy train config.cfg --paths.vectors ./fa_floret_wiki_200kThe table
Trained with:
python -m floret_torch.train --input fa.txt --output fa \
--model cbow --mode floret --dim 300 --minn 5 --maxn 5 \
--hashCount 2 --bucket 200000 --neg 10 --epoch 5 \
--lr 0.05 --minCount 20 --batch 8192Other packages in this family
Tiers: sm hash embeddings, no vectors, md 50k x 300d floret vectors, lg 200k x 300d floret vectors, trf fine-tuned transformer, GPU recommended.
Standalone vector tables, usable as --paths.vectors for your own training:
Training scripts, configs and evaluation: <https://github.com/Fazel94/spacy-persian>.
