miaoblyat

miaoblyat

V2EX member #633518, joined on 2023-06-12 00:56:03 +08:00
Per miaoblyat's settings, the topics list is hidden
Deals info, including closed deals, is not hidden
miaoblyat's recent replies
qwen 有多模态模型可以图片视频加文本提问
Aug 29, 2025
Replied to a topic by Ranglage 职场话题 如何能找到靠谱的程序员呢
c# python 可以找我;不过你这种情况还是分开招人好一点
c# python 大佬们可以找我;不过你这种情况还是分开招人好一点
Jun 5, 2024
Replied to a topic by miaoblyat 程序员 如何从句子提取关键词
@macadoll 用了哪个大模型,方便说吗;目前我用了 bert-Chinese 感觉还是差点意思
Jun 3, 2024
Replied to a topic by miaoblyat 程序员 如何从句子提取关键词
好的感谢🙏
Jun 3, 2024
Replied to a topic by miaoblyat 程序员 如何从句子提取关键词
@miaoblyat 感觉近似词不是很准,就想着怎么能更精准
Jun 3, 2024
Replied to a topic by miaoblyat 程序员 如何从句子提取关键词
@BiChengfei sentence: 这里发生车辆碰撞,有人受伤
keyword: {'车祸': ['受伤']}--0.5
sentence: 这里有条狗被撞了,无人受伤
keyword: {'车祸': ['撞', '受伤']}--0.5
sentence: 高速上塞车了,不知道什么原因
keyword: {}--0.5
Jun 3, 2024
Replied to a topic by miaoblyat 程序员 如何从句子提取关键词
现在用了 Chinese-word- vector 作关键词字典
Jun 3, 2024
Replied to a topic by miaoblyat 程序员 如何从句子提取关键词
# 提取句子中的关键词及其近似词
def extract_keywords_and_similars(sentence, custom_keywords, similarity_threshold=0.5):
words = jieba.lcut(sentence)
result = {}

for keyword in custom_keywords:
extracted_words = [word for word in words if is_similar(keyword, word, similarity_threshold) or keyword == word]
if extracted_words:
result[keyword] = extracted_words

return result
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1104 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 11ms · UTC 23:58 · PVG 07:58 · LAX 16:58 · JFK 19:58
♥ Do have faith in what you're doing.