Anchor-annotator 0.9.0__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/undo.py +10 -0
- {anchor_annotator-0.9.0.dist-info → anchor_annotator-0.9.1.dist-info}/METADATA +1 -1
- {anchor_annotator-0.9.0.dist-info → anchor_annotator-0.9.1.dist-info}/RECORD +7 -7
- {anchor_annotator-0.9.0.dist-info → anchor_annotator-0.9.1.dist-info}/WHEEL +0 -0
- {anchor_annotator-0.9.0.dist-info → anchor_annotator-0.9.1.dist-info}/licenses/LICENSE +0 -0
- {anchor_annotator-0.9.0.dist-info → anchor_annotator-0.9.1.dist-info}/top_level.txt +0 -0
anchor/_version.py
CHANGED
anchor/undo.py
CHANGED
@@ -448,12 +448,15 @@ class DeleteReferenceIntervalsCommand(FileCommand):
|
|
448
448
|
super().__init__(file_model)
|
449
449
|
self.utterance = utterance
|
450
450
|
self.reference_intervals = None
|
451
|
+
self.reference_word_intervals = None
|
451
452
|
self.reference_workflow = None
|
452
453
|
|
453
454
|
def _redo(self, session) -> None:
|
454
455
|
if self.reference_intervals is None:
|
455
456
|
self.reference_intervals = self.utterance.reference_phone_intervals
|
457
|
+
self.reference_word_intervals = self.utterance.reference_word_intervals
|
456
458
|
self.utterance.reference_phone_intervals = []
|
459
|
+
self.utterance.reference_word_intervals = []
|
457
460
|
self.utterance.manual_alignments = False
|
458
461
|
session.merge(self.utterance)
|
459
462
|
|
@@ -462,10 +465,17 @@ class DeleteReferenceIntervalsCommand(FileCommand):
|
|
462
465
|
for pi in self.reference_intervals:
|
463
466
|
make_transient(pi)
|
464
467
|
reference_phone_intervals.append(pi)
|
468
|
+
reference_word_intervals = []
|
469
|
+
for wi in self.reference_word_intervals:
|
470
|
+
make_transient(wi)
|
471
|
+
reference_word_intervals.append(wi)
|
465
472
|
self.utterance.manual_alignments = True
|
466
473
|
self.utterance.reference_phone_intervals = sorted(
|
467
474
|
reference_phone_intervals, key=lambda x: x.begin
|
468
475
|
)
|
476
|
+
self.utterance.reference_word_intervals = sorted(
|
477
|
+
reference_word_intervals, key=lambda x: x.begin
|
478
|
+
)
|
469
479
|
session.merge(self.utterance)
|
470
480
|
|
471
481
|
def update_data(self):
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: Anchor_annotator
|
3
|
-
Version: 0.9.
|
3
|
+
Version: 0.9.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,6 +1,6 @@
|
|
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=QG_t-w_CzDn2UjPaW-Svt-wTU1NXK2QkudawUihJfHA,511
|
4
4
|
anchor/command_line.py,sha256=2IxO0fe_Uc37EjpVcF6SQMsrYOsYheCi4bUlWs3Y_tE,513
|
5
5
|
anchor/db.py,sha256=LlZzAy4bjmJIu0v4ev5Qjg_Fh2n9sMsKI2nAY1pwd0A,5057
|
6
6
|
anchor/main.py,sha256=xY2dAzmdu8P0C9yxdRJank-sDQjlyPuzguBy0tQrUbg,139814
|
@@ -12,11 +12,11 @@ anchor/ui_corpus_manager.py,sha256=e3ybOd4UdYarrLBATxI8vIFnioa4R_BHrbsEz5mJ5eA,8
|
|
12
12
|
anchor/ui_error_dialog.py,sha256=HKbjGT_jtdb9jfn9THQMbl1fmcdWyjYDazM4hCwZ5Yo,3931
|
13
13
|
anchor/ui_main_window.py,sha256=VWYsIwvKMHe1bLeH3_fLNU1iO84kxOSoDoDTTptQaJw,40443
|
14
14
|
anchor/ui_preferences.py,sha256=_1U67al_FoTjVizcK1He4JKBEqfmh3KxUo0UEB7kt5Q,43822
|
15
|
-
anchor/undo.py,sha256=
|
15
|
+
anchor/undo.py,sha256=wdjh-clcNBl6fKXbxr60kUIJaPOnJWADk0U32BGylJU,60966
|
16
16
|
anchor/widgets.py,sha256=ZsWkY31T2DVX-rc98SM3rY9ryoMJ_3HAR9Fy1rYBzdA,171235
|
17
17
|
anchor/workers.py,sha256=UOxTfG_HBCVlAWospwwBcenGwEeV5zK6cTj6n9LwnOk,203407
|
18
|
-
anchor_annotator-0.9.
|
19
|
-
anchor_annotator-0.9.
|
20
|
-
anchor_annotator-0.9.
|
21
|
-
anchor_annotator-0.9.
|
22
|
-
anchor_annotator-0.9.
|
18
|
+
anchor_annotator-0.9.1.dist-info/licenses/LICENSE,sha256=C0oIsblENEgWQ7XMNdYoXyXsIA5wa3YF0I9lK3H7A1s,1076
|
19
|
+
anchor_annotator-0.9.1.dist-info/METADATA,sha256=8Eo79TDQk6W62IkHQ6Aklq48LPfCR72-L0DXBth-Lc4,1522
|
20
|
+
anchor_annotator-0.9.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
21
|
+
anchor_annotator-0.9.1.dist-info/top_level.txt,sha256=wX6ZKxImGRZKFQjs3f6XYw_TfbAp6Xs3SmbLfLbFAJ0,7
|
22
|
+
anchor_annotator-0.9.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|