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 CHANGED
@@ -17,5 +17,5 @@ __version__: str
17
17
  __version_tuple__: VERSION_TUPLE
18
18
  version_tuple: VERSION_TUPLE
19
19
 
20
- __version__ = version = '0.9.0'
21
- __version_tuple__ = version_tuple = (0, 9, 0)
20
+ __version__ = version = '0.9.1'
21
+ __version_tuple__ = version_tuple = (0, 9, 1)
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.0
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=fqtOm8q4HIqAgc-mXbjsKoz34kMK1y3t9LDhc4497WE,511
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=YMiIBo_9oy8W050pRUyqsOSwfZgP2jwVdi4l6YfjSjk,60490
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.0.dist-info/licenses/LICENSE,sha256=C0oIsblENEgWQ7XMNdYoXyXsIA5wa3YF0I9lK3H7A1s,1076
19
- anchor_annotator-0.9.0.dist-info/METADATA,sha256=3qakmHATCknskdwaGr6vXQphSLh6YYtIRPy2P26GcmM,1522
20
- anchor_annotator-0.9.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
21
- anchor_annotator-0.9.0.dist-info/top_level.txt,sha256=wX6ZKxImGRZKFQjs3f6XYw_TfbAp6Xs3SmbLfLbFAJ0,7
22
- anchor_annotator-0.9.0.dist-info/RECORD,,
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,,