Downloads · 30 days
0
GoshKolotyan/perovskite-tokenizer
perovskite-tokenizer is a text generation model from GoshKolotyan. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
A specialized tokenizer for perovskite chemical formulas trained on 44 chemical elements.
Downloads · 30 days
0
Access
Public
Updated Sep 5, 2025
Repo size
—
Likes
0
Public
Click a slice to open those files.
.json10.5 KB · 81%
From the Hugging Face model README
A specialized tokenizer for perovskite chemical formulas trained on 44 chemical elements.
from tokenizers import Tokenizer
from perovskite_tokenizer import PerovskiteTokenizer
# Load tokenizer
tokenizer = Tokenizer.from_file("tokenizer.json")
# Tokenize a formula
result = tokenizer.encode("CsPbI3")
print(result.tokens) # ['[CLS]', 'Cs', 'Pb', 'I', '3', '[SEP]']
DMA, Na, Te, Bi, Sb, Ti, Tb, Mg, Li, Cd, Yb, Ni, Nb, Mn, Cu, Tl, Zn, Br, Sr, Hg...