How to use LTP/legacy with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("LTP/legacy", dtype="auto")