Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcauliffe committed Dec 9, 2021
1 parent 2d6f7e7 commit 947397e
Show file tree
Hide file tree
Showing 70 changed files with 1,998 additions and 1,385 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: "actions/checkout@v2"
- uses: "actions/setup-python@v2"
with:
python-version: "3.9"
python-version: "3.8"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
1 change: 1 addition & 0 deletions ci/mfa_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ channels:
- conda-forge
- defaults
dependencies:
- python>=3.8
- numpy
- librosa
- tqdm
Expand Down
6 changes: 3 additions & 3 deletions docs/source/_static/interrogate_badge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion docs/source/_templates/sidebar-nav-bs.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<nav class="bd-links" id="bd-docs-nav" aria-label="{{ _('Main navigation') }}">
<div class="bd-toc-item active">
{{ generate_nav_html("sidebar",
show_nav_level=theme_show_nav_level|int,
maxdepth=theme_navigation_depth|int,
collapse=theme_collapse_navigation|tobool,
includehidden=True,
Expand Down
15 changes: 15 additions & 0 deletions docs/source/changelog/changelog_2.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,21 @@
Beta releases
=============

2.0.0b9
-------

- Fixed a bug where unknown word phones were showing up as blank
- Fixed a bug where TextGrid export would hang
- Fixed compatibility issues with Python 3.8
- Added logging for when configuration parameters are ignored
- Added some functionality from the LibriSpeech recipe for triphone training with Arpabet

- Not sure if it'll improve anything, but I'll run some tests and maybe extend it to other phone sets

- Added better logging to TextGrid export
- Added new classes for managing collections of utterances, speakers, and files
- Fixed a bug where oovs were not being properly reported by the validation tool

2.0.0b8
-------

Expand Down
36 changes: 18 additions & 18 deletions docs/source/external_links.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
:license: BSD, see LICENSE for details.
"""

from typing import Any
from typing import Any, Dict, List, Tuple

import sphinx
from docutils import nodes, utils
Expand All @@ -42,8 +42,8 @@ def model_role(
lineno: int,
inliner: Inliner,
options: dict = None,
content: list[str] = None,
) -> tuple[list[Node], list[system_message]]:
content: List[str] = None,
) -> Tuple[List[Node], List[system_message]]:
text = utils.unescape(text)
model_type, model_name = text.split("/")
full_url = f"https://github.com/MontrealCorpusTools/mfa-models/raw/main/{model_type}/{model_name.lower()}.zip"
Expand All @@ -59,8 +59,8 @@ def kaldi_steps_role(
lineno: int,
inliner: Inliner,
options: dict = None,
content: list[str] = None,
) -> tuple[list[Node], list[system_message]]:
content: List[str] = None,
) -> Tuple[List[Node], List[system_message]]:
text = utils.unescape(text)
full_url = f"https://github.com/kaldi-asr/kaldi/tree/master/egs/wsj/s5/steps/{text}.sh"
title = f"{text}.sh"
Expand All @@ -75,8 +75,8 @@ def kaldi_utils_role(
lineno: int,
inliner: Inliner,
options: dict = None,
content: list[str] = None,
) -> tuple[list[Node], list[system_message]]:
content: List[str] = None,
) -> Tuple[List[Node], List[system_message]]:
filename = utils.unescape(text)
full_url = f"https://github.com/kaldi-asr/kaldi/tree/master/egs/wsj/s5/utils/{filename}"
title = f"{text}"
Expand All @@ -91,8 +91,8 @@ def kaldi_steps_sid_role(
lineno: int,
inliner: Inliner,
options: dict = None,
content: list[str] = None,
) -> tuple[list[Node], list[system_message]]:
content: List[str] = None,
) -> Tuple[List[Node], List[system_message]]:
text = utils.unescape(text)
full_url = f"https://github.com/kaldi-asr/kaldi/tree/cbed4ff688a172a7f765493d24771c1bd57dcd20/egs/sre08/v1/sid/{text}.sh"
title = f"sid/{text}.sh"
Expand All @@ -107,8 +107,8 @@ def kaldi_docs_role(
lineno: int,
inliner: Inliner,
options: dict = None,
content: list[str] = None,
) -> tuple[list[Node], list[system_message]]:
content: List[str] = None,
) -> Tuple[List[Node], List[system_message]]:
text = utils.unescape(text)
t = text.split("#")
text = t[0]
Expand All @@ -130,8 +130,8 @@ def openfst_src_role(
lineno: int,
inliner: Inliner,
options: dict = None,
content: list[str] = None,
) -> tuple[list[Node], list[system_message]]:
content: List[str] = None,
) -> Tuple[List[Node], List[system_message]]:
text = utils.unescape(text)
full_url = f"https://www.openfst.org/doxygen/fst/html/{text}-main_8cc_source.html"
title = f"OpenFst {text} source"
Expand All @@ -146,8 +146,8 @@ def kaldi_src_role(
lineno: int,
inliner: Inliner,
options: dict = None,
content: list[str] = None,
) -> tuple[list[Node], list[system_message]]:
content: List[str] = None,
) -> Tuple[List[Node], List[system_message]]:
text = utils.unescape(text)
mapping = {
"bin": set(
Expand Down Expand Up @@ -379,8 +379,8 @@ def xref(
lineno: int,
inliner: Inliner,
options: dict = None,
content: list[str] = None,
) -> tuple[list[Node], list[system_message]]:
content: List[str] = None,
) -> Tuple[List[Node], List[system_message]]:

title = target = text
# look if explicit title and target are given with `foo <bar>` syntax
Expand Down Expand Up @@ -409,7 +409,7 @@ def get_refs(app):
xref.links = app.config.xref_links


def setup(app: Sphinx) -> dict[str, Any]:
def setup(app: Sphinx) -> Dict[str, Any]:
app.add_config_value("xref_links", {}, "env")
app.add_role("mfa_model", model_role)
app.add_role("kaldi_steps", kaldi_steps_role)
Expand Down
13 changes: 13 additions & 0 deletions docs/source/reference/corpus/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,19 @@ Corpora
Helper classes and functions
============================

Collections
-----------

.. currentmodule:: montreal_forced_aligner.corpus.classes

.. autosummary::
:toctree: generated/

Collection
SpeakerCollection
FileCollection
UtteranceCollection

Multiprocessing
---------------

Expand Down
3 changes: 1 addition & 2 deletions docs/source/user_guide/configuration/global.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ The :code:`multilingual_ipa`, :code:`strip_diacritics`, and :code:`digraphs` are
"oov_word", "<unk>", "Internal word symbol to use for out of vocabulary items"
"oov_phone", "spn", "Internal phone symbol to use for out of vocabulary items"
"silence_word", "!sil", "Internal word symbol to use initial silence"
"nonoptional_silence_phone", "sil", "Internal phone symbol to use initial silence"
"optional_silence_phone", "sp", "Internal phone symbol to use optional silence in the middle of utterances"
"optional_silence_phone", "sp", "Internal phone symbol to use optional silence in or around utterances"
"position_dependent_phones", "True", "Flag for whether phones should mark their position in the word as part of the phone symbol internally"
"num_silence_states", "5", "Number of states to use for silence phones"
"num_non_silence_states", "3", "Number of states to use for non-silence phones"
Expand Down
3 changes: 2 additions & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: mfa
channels:
- conda-forge
dependencies:
- python>=3.9
- python>=3.8
- numpy
- librosa
- tqdm
Expand All @@ -16,3 +16,4 @@ dependencies:
- ngram
- pynini
- praatio
- biopython
3 changes: 2 additions & 1 deletion environment_win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: montreal-forced-aligner
channels:
- conda-forge
dependencies:
- python>=3.9
- python>=3.8
- numpy
- librosa
- tqdm
Expand All @@ -12,3 +12,4 @@ dependencies:
- kaldi
- sox
- praatio
- biopython
Loading

0 comments on commit 947397e

Please sign in to comment.