Skip to content

Commit

Permalink
0.6.5 (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcauliffe authored Jul 15, 2024
1 parent 8b2337e commit 30fd402
Show file tree
Hide file tree
Showing 9 changed files with 294 additions and 432 deletions.
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

0 comments on commit 30fd402

Please sign in to comment.