Upload folder using huggingface_hub 2fca02e verified
ismail ismail commited on
How to use SHK4K/hadith-segmentation-bert with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="SHK4K/hadith-segmentation-bert") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("SHK4K/hadith-segmentation-bert")
model = AutoModelForTokenClassification.from_pretrained("SHK4K/hadith-segmentation-bert")