Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crf_beam_search #30

Open
HaoDreamlong opened this issue Jun 11, 2021 · 0 comments
Open

crf_beam_search #30

HaoDreamlong opened this issue Jun 11, 2021 · 0 comments

Comments

@HaoDreamlong
Copy link

I notice there is a fuction named crf_beam_search, but I found no helping infomation or discribtion of this function, will there be any use demo of it? Is it for bonito crf model decode? I found it different of the input variables between the beamsearch in the kbeam package and here the crf_beam_search

crf_beam_search:
pub fn crf_beam_search<D: Data<Elem = f32>>(
network_output: &ArrayBase<D, Ix3>,
init_state: &ArrayBase<D, Ix1>,
alphabet: &[String],
beam_size: usize,
beam_cut_threshold: f32,
)

kbeam beamsearch:
path, _ = beamsearch(
scores['scores'], scale, seqdist.n_base, beamsize,
guide=scores['betas'], beam_cut=beamcut
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant