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

Add pybind11 wrapper for decoder #736

Merged
merged 2 commits into from
Mar 17, 2018
Merged

Conversation

kuke
Copy link
Collaborator

@kuke kuke commented Mar 14, 2018

Resolve #735

@kuke
Copy link
Collaborator Author

kuke commented Mar 14, 2018

Example usage:

in the decoder directory

$sh setup.sh
$python
>>> import decoder
>>> import numpy as np
>>> probs_mat = np.array([[0.1, 0.9], [0.5, 0.5]])
>>> decoder.decode(probs_mat)
u'example decoding result'

@kuke kuke requested review from pkuyym and zhxfl March 14, 2018 10:15
@kuke kuke merged commit d224397 into PaddlePaddle:develop Mar 17, 2018
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

Successfully merging this pull request may close these issues.

None yet

2 participants