我想要一天分享一點「LLM從底層堆疊的技術」,並且每篇文章長度控制在三分鐘以內,讓大家不會壓力太大,但是又能夠每天成長一點。
回顧目前手上有的素材:
當我們想要檢視 「consciousness」 這個字是否在 Embedding 中時,可以執行程式:
try:
vector = model.wv['consciousness']
print('Vector for "consciousness":', vector)
except KeyError:
print('"consciousness" is not in the dictionary')
結果為:
那如果嘗試原型字 「conscious」 這個字是否在 Embedding 中時,可以執行程式:
try:
vector = model.wv['conscious']
print('Vector for "conscious":', vector)
except KeyError:
print('"conscious" is not in the dictionary')
結果為: