微调 SentenceTransformer/SBERT 以提取文本摘要

问题描述 投票:0回答:0

NLP 新手。

我想构建提取文本摘要,尝试阅读这个https://huggingface.co/blog/how-to-train-sentence-transformers,我认为有一种方法可以用我自己的模型微调数据集(数据和语言),案例 2 就像这样

Case 2: The example is a pair of positive (similar) sentences without a label. For example, pairs of paraphrases, pairs of full texts and their summaries
但没有教程。想尝试,但所有教程都使用标签。

或者我想微调

Sentence-bert
上的嵌入,但也没有找到如何做的方法。我认为我们可以微调嵌入并获得文本中所有句子的相似度。

尝试使用 BERT 但由于教程已过时而卡住了。

我只是迷路和困惑。这里有人尝试过或知道并且可以给我建议或一些教程代码吗?

谢谢!

nlp bert-language-model summarization sentence-transformers fine-tune
© www.soinside.com 2019 - 2024. All rights reserved.