flashlight / text

Text utilities, including beam search decoding, tokenizing, and more, built for use in Flashlight.
MIT License
64 stars 15 forks source link

Python bindings for seq2seq decoders #20

Closed jacobkahn closed 1 year ago

jacobkahn commented 2 years ago

Summary

Bind Seq2Seq/autoregressive beam search decoders from Flashlight Text to Python.

Two notable subtleties in how the bindings are structured to avoid overhead:

Tests are self-documenting for now for the LexiconFreeSeq2Seq variant.

Checklist

facebook-github-bot commented 1 year ago

@jacobkahn has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

facebook-github-bot commented 1 year ago

This pull request was exported from Phabricator. Differential Revision: D42038797

facebook-github-bot commented 1 year ago

@jacobkahn merged this pull request in flashlight/text@f7b6e13cfde21a45ff30336103356f512b3f15e3.