DEV Community

How to leverage the state-of-the-art NLP models in Rust

Medcl on August 01, 2023

In this tutorial we will show you how to use rust-bert library to utilize the state-of-the-art natural language processing models in Rust, and we a...
Collapse
 
tbroyer profile image
Thomas Broyer

"just in a few lines of code" but you had to install a whole bunch of things, clone a couple projects in 2 different languages and build/install them.
Then running the code apparently loads remote (even though already cached) JSON files?
I have no idea how each step builds upon the previous ones and how this all works (not the models, but the overall thing, the building blocks)

Collapse
 
medcl profile image
Medcl

Agreed, though it only takes a few lines in Rust, but it did take a few hours to make them all work together. especially ugly python stuff :(