Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.6.5 #19

Merged
merged 2 commits into from
Jul 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,28 @@
version: 2

build:
os: "ubuntu-20.04"
os: "ubuntu-22.04"
tools:
python: "mambaforge-4.10"
jobs:
post_checkout:
- git fetch --unshallow || true
pre_install:
- git update-index --assume-unchanged .rtd-environment.yml docs/conf.py

sphinx:
configuration: docs/source/conf.py
builder: html
configuration: docs/source/conf.py
fail_on_warning: false

formats:
- htmlzip

conda:
environment: rtd_environment.yml

# This part is necessary otherwise the project is not built
python:
version: 3.9
install:
- method: pip
path: .
267 changes: 0 additions & 267 deletions docs/source/_static/css/mfa.css

This file was deleted.

7 changes: 7 additions & 0 deletions docs/source/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
Changelog
=========

0.6.5
-----

- Changed how the :code:`silence_probability` parameter of :code:`LexiconCompiler` works with pronunciations that have silence probabilities, so that setting it to 0.0 will ensure that no optional silences are included
- Changed :code:`TrainingGraphCompiler` signature to require a :code:`LexiconCompiler` rather than an FST/path and a word table
- Added the functionality for adding interjection words in between each word in an alignment

0.6.0
-----

Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@
html_static_path = ["_static"]
html_css_files = [
"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/fontawesome.min.css",
"css/mfa.css",
"https://montreal-forced-aligner.readthedocs.io/en/latest/_static/css/mfa.css",
]

# Add any extra paths that contain custom files (such as robots.txt or
Expand Down
14 changes: 14 additions & 0 deletions extensions/decoder/decoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1770,6 +1770,20 @@ void pybind_training_graph_compiler(py::module &m) {
"CompileGraphs allows you to compile a number of graphs at the same "
"time. This consumes more memory but is faster.",
py::arg("word_fsts"), py::arg("out_fst"))
.def("CompileGraphs",

[](PyClass& gc, const std::vector<const fst::VectorFst<fst::StdArc> *> &word_fsts){

py::gil_scoped_release gil_release;
std::vector<fst::VectorFst<fst::StdArc>* > fsts;

bool ans = gc.CompileGraphs(word_fsts, &fsts);
return fsts;
},
"CompileGraphs allows you to compile a number of graphs at the same "
"time. This consumes more memory but is faster.",
py::arg("word_fsts"),
py::return_value_policy::take_ownership)
.def("CompileGraphFromText",
&PyClass::CompileGraphFromText,
"This version creates an FST from the text and calls CompileGraph.",
Expand Down
Loading