首页 > 技术文章 > 什么是context free model 和 context based model

hisi-tech 2022-04-19 17:31 原文

最近在学习英语的时候,刚好发现了这个新知识,立马记下来哈哈哈哈。

Pre-trained language representations can either be context-free or context-basedContext-based representations can then be unidirectional or bidirectional. Context-free models like word2vec generate a single word embedding representation (a vector of numbers) for each word in the vocabulary. For example, the word “bank” would have the same context-free representation in “bank account” and “bank of the river. On the other hand, context-based models generate a representation of each word that is based on the other words in the sentence. For example, in the sentence “I accessed the bank account,” a unidirectional contextual model would represent “bank” based on “I accessed the” but not “account.” However, BERT represents “bank” using both its previous and next context — “I accessed the … account

 

【link】

推荐阅读