Skip to content

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.

Notifications You must be signed in to change notification settings

SigDelta/wcag-mathcat-for-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

wcag-mathcat-for-python

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:

  1. Create virtual environment.
  2. Install requirements.txt. It contains package maturin, which is used for Rust compilation.
  3. Go to MathCAT directory.
  4. Run maturin build or maturin develop in order to prepare .whl file.

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.

  1. Now you can install package from .whl file in any project you need.

Note that interface that is available from Python package is defined in <MathCAT_directory_path>/src/lib.rs

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages