baidu / baidu/lac

crf_decoding 层 transition 矩阵维度问题

Open
#204 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
4k
Forks
592
PR merge metrics
No merged PRs in 30d

Description

您好,我在使用默认 LAC 模型分词时,把模型打出来,发现 viterbi decoding 的 transition 矩阵维度不同,这里不应该是一个 num_tags*num_tags 的矩阵吗?多出来的 2 是因为什么?文档哪里有解释吗?
![image](https://user-images.githubusercontent.com/33583733/124732264-a2ae4700-df45-11eb-9232-703589e39a42.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the crf_decoding layer and the default LAC model's Viterbi decoding output shown in the issue. Trace how the transition matrix is created and compare its dimensions with num_tags*num_tags. Done means explaining the extra 2 and adding or pointing to documentation that resolves the discrepancy.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
machine-learning
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.