hfl/english-pert-base · Hugging Face (original) (raw)

Use a pipeline as a high-level helper

from transformers import pipeline
pipe = pipeline("feature-extraction", model="hfl/english-pert-base")

Load model directly

from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("hfl/english-pert-base")
model = AutoModel.from_pretrained("hfl/english-pert-base")

ALL English models are UNCASED (lowercase=True)

Under construction...

Please visit our GitHub repo for more information: https://github.com/ymcui/PERT

Collection including hfl/english-pert-base