Anchor-annotator 0.8.2__py3-none-any.whl → 0.9.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/_version.py +2 -2
- anchor/command_line.py +1 -0
- anchor/main.py +113 -6
- anchor/models.py +402 -23
- anchor/plot.py +835 -104
- anchor/settings.py +6 -10
- anchor/ui_main_window.py +14 -8
- anchor/undo.py +682 -11
- anchor/widgets.py +303 -39
- anchor/workers.py +632 -351
- {anchor_annotator-0.8.2.dist-info → anchor_annotator-0.9.1.dist-info}/METADATA +1 -1
- anchor_annotator-0.9.1.dist-info/RECORD +22 -0
- anchor_annotator-0.8.2.dist-info/RECORD +0 -22
- {anchor_annotator-0.8.2.dist-info → anchor_annotator-0.9.1.dist-info}/WHEEL +0 -0
- {anchor_annotator-0.8.2.dist-info → anchor_annotator-0.9.1.dist-info}/licenses/LICENSE +0 -0
- {anchor_annotator-0.8.2.dist-info → anchor_annotator-0.9.1.dist-info}/top_level.txt +0 -0
anchor/settings.py
CHANGED
@@ -68,6 +68,7 @@ class AnchorSettings(QtCore.QSettings):
|
|
68
68
|
AM_VISIBLE = "anchor/MainWindow/acousticModelVisible"
|
69
69
|
TRANSCRIPTION_VISIBLE = "anchor/MainWindow/transcriptionVisible"
|
70
70
|
ALIGNMENT_VISIBLE = "anchor/MainWindow/alignmentVisible"
|
71
|
+
ALIGNMENT_ANALYSIS_VISIBLE = "anchor/MainWindow/alignmentAnalysisVisible"
|
71
72
|
DIARIZATION_VISIBLE = "anchor/MainWindow/diarizationVisible"
|
72
73
|
|
73
74
|
FONT = "anchor/theme/font"
|
@@ -136,8 +137,6 @@ class AnchorSettings(QtCore.QSettings):
|
|
136
137
|
TIER_ALIGNED_WORDS_VISIBLE = "anchor/tier/aligned_words_visible"
|
137
138
|
TIER_ALIGNED_PHONES_VISIBLE = "anchor/tier/aligned_phones_visible"
|
138
139
|
TIER_REFERENCE_PHONES_VISIBLE = "anchor/tier/reference_phones_visible"
|
139
|
-
TIER_TRANSCRIBED_WORDS_VISIBLE = "anchor/tier/transcribed_words_visible"
|
140
|
-
TIER_TRANSCRIBED_PHONES_VISIBLE = "anchor/tier/transcribed_phones_visible"
|
141
140
|
|
142
141
|
def __init__(self, *args):
|
143
142
|
super(AnchorSettings, self).__init__(
|
@@ -215,14 +214,13 @@ class AnchorSettings(QtCore.QSettings):
|
|
215
214
|
AnchorSettings.TRANSCRIPTION_VISIBLE: False,
|
216
215
|
AnchorSettings.ALIGNMENT_VISIBLE: False,
|
217
216
|
AnchorSettings.DIARIZATION_VISIBLE: False,
|
217
|
+
AnchorSettings.ALIGNMENT_ANALYSIS_VISIBLE: False,
|
218
218
|
AnchorSettings.TIER_MAX_SPEAKERS: 2,
|
219
219
|
AnchorSettings.TIER_NORMALIZED_VISIBLE: False,
|
220
220
|
AnchorSettings.TIER_ALIGNED_WORDS_VISIBLE: True,
|
221
221
|
AnchorSettings.TIER_ALIGNED_PHONES_VISIBLE: True,
|
222
222
|
AnchorSettings.TIER_REFERENCE_PHONES_VISIBLE: True,
|
223
223
|
AnchorSettings.TIER_TRANSCRIPTION_VISIBLE: True,
|
224
|
-
AnchorSettings.TIER_TRANSCRIBED_WORDS_VISIBLE: True,
|
225
|
-
AnchorSettings.TIER_TRANSCRIBED_PHONES_VISIBLE: True,
|
226
224
|
AnchorSettings.THEME_PRESET: "MFA",
|
227
225
|
AnchorSettings.LANGUAGE: "unknown",
|
228
226
|
AnchorSettings.VAD_MODEL: "kaldi",
|
@@ -245,10 +243,9 @@ class AnchorSettings(QtCore.QSettings):
|
|
245
243
|
"Normalized text": AnchorSettings.TIER_NORMALIZED_VISIBLE,
|
246
244
|
"Words": AnchorSettings.TIER_ALIGNED_WORDS_VISIBLE,
|
247
245
|
"Phones": AnchorSettings.TIER_ALIGNED_PHONES_VISIBLE,
|
248
|
-
"Reference": AnchorSettings.TIER_REFERENCE_PHONES_VISIBLE,
|
246
|
+
"Reference words": AnchorSettings.TIER_REFERENCE_PHONES_VISIBLE,
|
247
|
+
"Reference phones": AnchorSettings.TIER_REFERENCE_PHONES_VISIBLE,
|
249
248
|
"Transcription": AnchorSettings.TIER_TRANSCRIPTION_VISIBLE,
|
250
|
-
"Transcribed words": AnchorSettings.TIER_TRANSCRIBED_WORDS_VISIBLE,
|
251
|
-
"Transcribed phones": AnchorSettings.TIER_TRANSCRIBED_PHONES_VISIBLE,
|
252
249
|
}
|
253
250
|
|
254
251
|
@property
|
@@ -282,10 +279,9 @@ class AnchorSettings(QtCore.QSettings):
|
|
282
279
|
"Normalized text": self.value(AnchorSettings.TIER_NORMALIZED_VISIBLE),
|
283
280
|
"Words": self.value(AnchorSettings.TIER_ALIGNED_WORDS_VISIBLE),
|
284
281
|
"Phones": self.value(AnchorSettings.TIER_ALIGNED_PHONES_VISIBLE),
|
285
|
-
"Reference": self.value(AnchorSettings.TIER_REFERENCE_PHONES_VISIBLE),
|
282
|
+
"Reference words": self.value(AnchorSettings.TIER_REFERENCE_PHONES_VISIBLE),
|
283
|
+
"Reference phones": self.value(AnchorSettings.TIER_REFERENCE_PHONES_VISIBLE),
|
286
284
|
"Transcription": self.value(AnchorSettings.TIER_TRANSCRIPTION_VISIBLE),
|
287
|
-
"Transcribed words": self.value(AnchorSettings.TIER_TRANSCRIBED_WORDS_VISIBLE),
|
288
|
-
"Transcribed phones": self.value(AnchorSettings.TIER_TRANSCRIBED_PHONES_VISIBLE),
|
289
285
|
}
|
290
286
|
|
291
287
|
def value(self, arg__1: str, defaultValue: Optional[Any] = ..., t: object = ...) -> Any:
|
anchor/ui_main_window.py
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
################################################################################
|
4
4
|
## Form generated from reading UI file 'main_window.ui'
|
5
5
|
##
|
6
|
-
## Created by: Qt User Interface Compiler version 6.7.
|
6
|
+
## Created by: Qt User Interface Compiler version 6.7.1
|
7
7
|
##
|
8
8
|
## WARNING! All changes made in this file will be lost when recompiling UI file!
|
9
9
|
################################################################################
|
@@ -57,6 +57,7 @@ from PySide6.QtWidgets import (
|
|
57
57
|
import anchor.resources_rc
|
58
58
|
from anchor.widgets import (
|
59
59
|
AcousticModelWidget,
|
60
|
+
AlignmentAnalysisWidget,
|
60
61
|
AlignmentWidget,
|
61
62
|
DiarizationWidget,
|
62
63
|
DictionaryWidget,
|
@@ -77,7 +78,7 @@ class Ui_MainWindow(object):
|
|
77
78
|
MainWindow.setObjectName("MainWindow")
|
78
79
|
MainWindow.resize(1448, 974)
|
79
80
|
icon = QIcon()
|
80
|
-
icon.addFile(":/anchor-yellow.svg", QSize(), QIcon.
|
81
|
+
icon.addFile(":/anchor-yellow.svg", QSize(), QIcon.Normal, QIcon.Off)
|
81
82
|
MainWindow.setWindowIcon(icon)
|
82
83
|
MainWindow.setStyleSheet("")
|
83
84
|
MainWindow.setAnimated(True)
|
@@ -312,7 +313,6 @@ class Ui_MainWindow(object):
|
|
312
313
|
self.menuCorpus.setObjectName("menuCorpus")
|
313
314
|
self.loadRecentCorpusMenu = QMenu(self.menuCorpus)
|
314
315
|
self.loadRecentCorpusMenu.setObjectName("loadRecentCorpusMenu")
|
315
|
-
self.loadRecentCorpusMenu.setMaximumSize(QSize(200, 400))
|
316
316
|
self.menuEdit = QMenu(self.menubar)
|
317
317
|
self.menuEdit.setObjectName("menuEdit")
|
318
318
|
self.menuDictionary = QMenu(self.menubar)
|
@@ -321,7 +321,6 @@ class Ui_MainWindow(object):
|
|
321
321
|
self.mfaDictionaryMenu.setObjectName("mfaDictionaryMenu")
|
322
322
|
self.menuDownload_dictionary = QMenu(self.menuDictionary)
|
323
323
|
self.menuDownload_dictionary.setObjectName("menuDownload_dictionary")
|
324
|
-
self.menuDownload_dictionary.setMaximumSize(QSize(200, 400))
|
325
324
|
self.menuWindow = QMenu(self.menubar)
|
326
325
|
self.menuWindow.setObjectName("menuWindow")
|
327
326
|
self.menuModels = QMenu(self.menubar)
|
@@ -336,16 +335,12 @@ class Ui_MainWindow(object):
|
|
336
335
|
self.languageModelMenu.setObjectName("languageModelMenu")
|
337
336
|
self.menuDownload_acoustic_model = QMenu(self.menuModels)
|
338
337
|
self.menuDownload_acoustic_model.setObjectName("menuDownload_acoustic_model")
|
339
|
-
self.menuDownload_acoustic_model.setMaximumSize(QSize(200, 400))
|
340
338
|
self.menuDownload_ivector_extractor = QMenu(self.menuModels)
|
341
339
|
self.menuDownload_ivector_extractor.setObjectName("menuDownload_ivector_extractor")
|
342
|
-
self.menuDownload_ivector_extractor.setMaximumSize(QSize(200, 400))
|
343
340
|
self.menuDownload_language_model = QMenu(self.menuModels)
|
344
341
|
self.menuDownload_language_model.setObjectName("menuDownload_language_model")
|
345
|
-
self.menuDownload_language_model.setMaximumSize(QSize(200, 400))
|
346
342
|
self.menuDownload_G2P_model = QMenu(self.menuModels)
|
347
343
|
self.menuDownload_G2P_model.setObjectName("menuDownload_G2P_model")
|
348
|
-
self.menuDownload_G2P_model.setMaximumSize(QSize(200, 400))
|
349
344
|
self.vadModelMenu = QMenu(self.menuModels)
|
350
345
|
self.vadModelMenu.setObjectName("vadModelMenu")
|
351
346
|
self.menuAlignment = QMenu(self.menubar)
|
@@ -441,6 +436,14 @@ class Ui_MainWindow(object):
|
|
441
436
|
self.diarizationWidget.setObjectName("diarizationWidget")
|
442
437
|
self.diarizationDockWidget.setWidget(self.diarizationWidget)
|
443
438
|
MainWindow.addDockWidget(Qt.DockWidgetArea.LeftDockWidgetArea, self.diarizationDockWidget)
|
439
|
+
self.alignmentAnalysisDockWidget = QDockWidget(MainWindow)
|
440
|
+
self.alignmentAnalysisDockWidget.setObjectName("alignmentAnalysisDockWidget")
|
441
|
+
self.alignmentAnalysisWidget = AlignmentAnalysisWidget()
|
442
|
+
self.alignmentAnalysisWidget.setObjectName("alignmentAnalysisWidget")
|
443
|
+
self.alignmentAnalysisDockWidget.setWidget(self.alignmentAnalysisWidget)
|
444
|
+
MainWindow.addDockWidget(
|
445
|
+
Qt.DockWidgetArea.LeftDockWidgetArea, self.alignmentAnalysisDockWidget
|
446
|
+
)
|
444
447
|
|
445
448
|
self.menubar.addAction(self.menuCorpus.menuAction())
|
446
449
|
self.menubar.addAction(self.menuEdit.menuAction())
|
@@ -805,5 +808,8 @@ class Ui_MainWindow(object):
|
|
805
808
|
self.diarizationDockWidget.setWindowTitle(
|
806
809
|
QCoreApplication.translate("MainWindow", "Diarization", None)
|
807
810
|
)
|
811
|
+
self.alignmentAnalysisDockWidget.setWindowTitle(
|
812
|
+
QCoreApplication.translate("MainWindow", "Alignment analysis", None)
|
813
|
+
)
|
808
814
|
|
809
815
|
# retranslateUi
|