Anchor-annotator 0.3.0__py3-none-any.whl → 0.3.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {Anchor_annotator-0.3.0.dist-info → Anchor_annotator-0.3.1.dist-info}/METADATA +1 -1
- {Anchor_annotator-0.3.0.dist-info → Anchor_annotator-0.3.1.dist-info}/RECORD +10 -10
- anchor/_version.py +2 -2
- anchor/models.py +6 -4
- anchor/plot.py +0 -5
- anchor/ui_main_window.py +1 -1
- anchor/workers.py +0 -2
- {Anchor_annotator-0.3.0.dist-info → Anchor_annotator-0.3.1.dist-info}/LICENSE +0 -0
- {Anchor_annotator-0.3.0.dist-info → Anchor_annotator-0.3.1.dist-info}/WHEEL +0 -0
- {Anchor_annotator-0.3.0.dist-info → Anchor_annotator-0.3.1.dist-info}/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: Anchor_annotator
|
3
|
-
Version: 0.3.
|
3
|
+
Version: 0.3.1
|
4
4
|
Summary: Anchor annotator is a program for inspecting corpora for the Montreal Forced Aligner and correcting transcriptions and pronunciations.
|
5
5
|
Home-page: https://github.com/MontrealCorpusTools/Anchor-annotator
|
6
6
|
Author: Montreal Corpus Tools
|
@@ -1,22 +1,22 @@
|
|
1
1
|
anchor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
2
|
anchor/__main__.py,sha256=5ufG8lcx2x1am-04xI991AG7saJd24dxPw5JzjmB878,45
|
3
|
-
anchor/_version.py,sha256=
|
3
|
+
anchor/_version.py,sha256=HzPz9rq3s1AiZXregKlqKaJJ2wGMtvH_a3V9la9CnpM,411
|
4
4
|
anchor/command_line.py,sha256=EucG805HyWk_zkMO9RXv9Yj0I0JVdDLZb1_DX2_ISjM,503
|
5
5
|
anchor/db.py,sha256=ef4lO6HtCKoxC9CorIc0ZbPxKpjHa576a0ZIBOWNU9E,4956
|
6
6
|
anchor/main.py,sha256=eazWSZC94_nyBx_6rJ85hxC9wkCJYVP5FN_t9vnRm44,120658
|
7
|
-
anchor/models.py,sha256=
|
8
|
-
anchor/plot.py,sha256=
|
7
|
+
anchor/models.py,sha256=QBVSvmoqee0aIuMUMEbc7D5vDqsZ2sC7njwwI_NOuEg,96005
|
8
|
+
anchor/plot.py,sha256=7Z_UeHyrrNk5oEFyFG_RdgiV4ray75juuuq-Nxb9FZo,104379
|
9
9
|
anchor/resources_rc.py,sha256=94wgxDTpP4Oy55Br7CZ_YnmvaqzHr4n-AydBPhZc-es,8427242
|
10
10
|
anchor/settings.py,sha256=QdfBtJowHpkBLzJ_3bZRKxF1rJDBW9Z5kp83sJVz0pA,46965
|
11
11
|
anchor/ui_corpus_manager.py,sha256=e3ybOd4UdYarrLBATxI8vIFnioa4R_BHrbsEz5mJ5eA,8564
|
12
12
|
anchor/ui_error_dialog.py,sha256=c_QS0s1VaJEV9AhcrQZQyWHHpUPudWjJY1NI7Ytipio,3832
|
13
|
-
anchor/ui_main_window.py,sha256=
|
13
|
+
anchor/ui_main_window.py,sha256=MYb4PtV1sHYgnc3QwPphKjU3LepzBJpxllhN4nyDook,63525
|
14
14
|
anchor/ui_preferences.py,sha256=MOC2dY4qkViW9cUbC0DVSO7FLg-dGSbmR630WFQ6V9c,41843
|
15
15
|
anchor/undo.py,sha256=PLtiAxC7U27vbega_p21vDRy4m9QBiHatDELlcNx08Y,32523
|
16
16
|
anchor/widgets.py,sha256=th0zg-bgmHfwEbdfLKkt-OZUsmjy01PSAGGwcnlwwNM,158375
|
17
|
-
anchor/workers.py,sha256=
|
18
|
-
Anchor_annotator-0.3.
|
19
|
-
Anchor_annotator-0.3.
|
20
|
-
Anchor_annotator-0.3.
|
21
|
-
Anchor_annotator-0.3.
|
22
|
-
Anchor_annotator-0.3.
|
17
|
+
anchor/workers.py,sha256=WceIGLKC8s9PqQw4VXPppBerHV1JUtJJxawHtQT1MXk,171183
|
18
|
+
Anchor_annotator-0.3.1.dist-info/LICENSE,sha256=C0oIsblENEgWQ7XMNdYoXyXsIA5wa3YF0I9lK3H7A1s,1076
|
19
|
+
Anchor_annotator-0.3.1.dist-info/METADATA,sha256=jW9m88-K6vEKIRvkqKddvCE9fB7PNMDoqXQamawFwNA,1500
|
20
|
+
Anchor_annotator-0.3.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
21
|
+
Anchor_annotator-0.3.1.dist-info/top_level.txt,sha256=wX6ZKxImGRZKFQjs3f6XYw_TfbAp6Xs3SmbLfLbFAJ0,7
|
22
|
+
Anchor_annotator-0.3.1.dist-info/RECORD,,
|
anchor/_version.py
CHANGED
anchor/models.py
CHANGED
@@ -68,18 +68,20 @@ class TextFilterQuery:
|
|
68
68
|
if not self.regex:
|
69
69
|
text = re.escape(text)
|
70
70
|
word_break_set = r"\b"
|
71
|
-
if posix:
|
72
|
-
word_break_set = r"\y"
|
73
|
-
text = text.replace(r"\b", word_break_set)
|
74
71
|
if self.word:
|
75
72
|
if not text.startswith(word_break_set):
|
76
73
|
text = word_break_set + text
|
77
74
|
if not text.endswith(word_break_set):
|
78
75
|
text += word_break_set
|
76
|
+
if posix:
|
77
|
+
text = text.replace(r"\b", word_break_set)
|
78
|
+
if text.startswith(r"\b"):
|
79
|
+
text = r"((?<=\s)|(?<=^))" + text[2:]
|
80
|
+
if text.endswith(r"\b"):
|
81
|
+
text = text[:-2] + r"((?=\s)|(?=$))"
|
79
82
|
if self.regex or self.word:
|
80
83
|
if not self.case_sensitive:
|
81
84
|
text = "(?i)" + text
|
82
|
-
|
83
85
|
return text
|
84
86
|
|
85
87
|
|
anchor/plot.py
CHANGED
@@ -11,7 +11,6 @@ import numpy as np
|
|
11
11
|
import pyqtgraph as pg
|
12
12
|
import sqlalchemy
|
13
13
|
from Bio import pairwise2
|
14
|
-
from line_profiler_pycharm import profile
|
15
14
|
from montreal_forced_aligner.data import CtmInterval
|
16
15
|
from montreal_forced_aligner.db import Speaker, Utterance
|
17
16
|
from PySide6 import QtCore, QtGui, QtWidgets
|
@@ -1457,7 +1456,6 @@ class MfaRegion(pg.LinearRegionItem):
|
|
1457
1456
|
|
1458
1457
|
settings = AnchorSettings()
|
1459
1458
|
|
1460
|
-
@profile
|
1461
1459
|
def __init__(
|
1462
1460
|
self,
|
1463
1461
|
item: CtmInterval,
|
@@ -1566,7 +1564,6 @@ class MfaRegion(pg.LinearRegionItem):
|
|
1566
1564
|
|
1567
1565
|
|
1568
1566
|
class AlignmentRegion(MfaRegion):
|
1569
|
-
@profile
|
1570
1567
|
def __init__(
|
1571
1568
|
self,
|
1572
1569
|
phone_interval: CtmInterval,
|
@@ -1681,7 +1678,6 @@ class WordRegion(AlignmentRegion):
|
|
1681
1678
|
|
1682
1679
|
|
1683
1680
|
class UtteranceRegion(MfaRegion):
|
1684
|
-
@profile
|
1685
1681
|
def __init__(
|
1686
1682
|
self,
|
1687
1683
|
utterance: workers.UtteranceData,
|
@@ -2573,7 +2569,6 @@ class SpeakerTier(pg.GraphicsObject):
|
|
2573
2569
|
reg.scene().removeItem(reg)
|
2574
2570
|
self.visible_utterances = {}
|
2575
2571
|
|
2576
|
-
@profile
|
2577
2572
|
def refresh(self, *args):
|
2578
2573
|
self.hide()
|
2579
2574
|
if self.selection_model.plot_min is None:
|
anchor/ui_main_window.py
CHANGED
@@ -8,7 +8,6 @@
|
|
8
8
|
## WARNING! All changes made in this file will be lost when recompiling UI file!
|
9
9
|
################################################################################
|
10
10
|
|
11
|
-
import resources_rc
|
12
11
|
from PySide6.QtCore import (
|
13
12
|
QCoreApplication,
|
14
13
|
QDate,
|
@@ -55,6 +54,7 @@ from PySide6.QtWidgets import (
|
|
55
54
|
QWidget,
|
56
55
|
)
|
57
56
|
|
57
|
+
import anchor.resources_rc
|
58
58
|
from anchor.widgets import (
|
59
59
|
AcousticModelWidget,
|
60
60
|
AlignmentWidget,
|
anchor/workers.py
CHANGED
@@ -29,7 +29,6 @@ from _kalpy.feat import compute_pitch
|
|
29
29
|
from _kalpy.ivector import Plda, ivector_normalize_length
|
30
30
|
from _kalpy.matrix import DoubleVector, FloatVector
|
31
31
|
from kalpy.feat.pitch import PitchComputer
|
32
|
-
from line_profiler_pycharm import profile
|
33
32
|
from montreal_forced_aligner import config
|
34
33
|
from montreal_forced_aligner.alignment import PretrainedAligner
|
35
34
|
from montreal_forced_aligner.config import IVECTOR_DIMENSION, XVECTOR_DIMENSION
|
@@ -3151,7 +3150,6 @@ class SpectrogramWorker(FunctionWorker): # pragma: no cover
|
|
3151
3150
|
self.end = end
|
3152
3151
|
self.channel = channel
|
3153
3152
|
|
3154
|
-
@profile
|
3155
3153
|
def run(self):
|
3156
3154
|
self.stopped.clear()
|
3157
3155
|
dynamic_range = self.settings.value(self.settings.SPEC_DYNAMIC_RANGE)
|
File without changes
|
File without changes
|
File without changes
|