5、自然语言处理中的概率模型与文本分类

自然语言处理中的概率模型与文本分类

1. 马尔可夫假设与 n - 元语言模型

1.1 马尔可夫假设

马尔可夫假设认为,链中的随机事件仅有条件地依赖于有限数量的前序事件。根据条件依赖的前序事件数量,二元语言模型呈现为一阶马尔可夫链,三元语言模型呈现为二阶马尔可夫链。

1.2 不同 n - 元语言模型的对比

通过使用不同的 n - 元语言模型生成莎士比亚戏剧脚本的示例输出,我们可以直观地对比一元、二元和三元语言模型。以下是具体的示例表格:
| 模型 | 示例输出 |
| — | — |
| 一元模型 | out this like there A gainst me you, made?
he C upid to thou too thee My he tricks that heart one thing face as not fear she on face A then
A ll my sometime like himself, – W hat’ s master. |
| 二元模型 | A s much good news? tell you foolish thought.
C an it like a man whom there but it is eaten up Lancaster and it, sir? A way! why
W here is the lady of the house of Y ork. |
| 三元模型 | My servant, A riel, thy blood and made to understand you,

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值