guillaume-be / rust-bert

Rust native ready-to-use NLP pipelines and transformer-based models (BERT, DistilBERT, GPT2,...)
https://docs.rs/crate/rust-bert
Apache License 2.0
2.67k stars 217 forks source link

Is it possible to use this library in a python extension?? #400

Closed sagarp-patel closed 1 year ago

sagarp-patel commented 1 year ago

Hi, I am currently working on a NLP project where I am using rust to parse and extract files and then send the data to python. I am wondering if I can use this library for the python extension?? I tried using this with maturin, and pyo3. Not sure why, but it broke the entire program. I was wondering if there was a way anyone knows how to use this with maturin to build a python library?? I would provider any error messages, but it just says module not found in python.