Closed wushixian closed 2 years ago
@wushixian: KeyPhraseTransformer, under the hood, uses a T5 model (but trained in a specific way). If you want to extract keywords from other languages, I would suggest the following:
source_text = "Wushixian is a NLP expert."
target_text: "Wushixian | NLP expert"
from keyphrasetransformer import KeyPhraseTransformer
kp = KeyPhraseTransformer(model_type="mt5", model_name="<your trained mT5 model path>")
Thanks a lot, I'll try to train a model.
Hello,
I tried to fine tune this model on persian language. I have a question. What will happen when we call this function? It didn't take me long time to execute. How exactly the fine tuning happens in this model?
kp = KeyPhraseTransformer(model_type="mt5", model_name="folder")
The package is really good, but I want to use it for other language, and I tried to modify the model path and use other T5 model, but the model cannot be loaded? May I know how to train a model from scratch? Thanks a lot.