Open ahdmmtq opened 3 years ago
SentenceTransformer is the wrong class, you should use the CrossEncoder class: https://www.sbert.net/examples/applications/cross-encoder/README.html https://www.sbert.net/examples/training/cross-encoder/README.html
Instead of sentence pairs with a score you can pass also individual sentences with a pair.
I decided to use
paraphrase-mpnet-base-v2
word embedding for a regression task.I tried fine-tuning the model via adding a layer on top of it and training it so it should receive a single sentence at time and predict the score of this sentence.
This what I tried so far:
However there is something wrong with my model and it never gets better when trained, it may also get worse and worse.
I don't know what's wrong, may be the input layer? I just discovered this library 2 days ago and I'm reading the docs since then but I still don't know how to get this task done.