Repository containing MathCAT implementation in Rust. It includes instructions how to use this code as Python package. MathCAT is used in math formulas conversions to natural language.
In order to build Python package from Rust code follow below step:
- Create virtual environment.
- Install requirements.txt. It contains package
maturin, which is used for Rust compilation. - Go to MathCAT directory.
- Run
maturin buildormaturin developin order to prepare.whlfile.
Path to generated .whl file should be found in the logs of previous maturin command.
Warning! In order to perform step 4, you need to have Rust compiler installed.
- Now you can install package from
.whlfile in any project you need.
Note that interface that is available from Python package is defined in <MathCAT_directory_path>/src/lib.rs