File tree 5 files changed +50
-18
lines changed
5 files changed +50
-18
lines changed Original file line number Diff line number Diff line change 1
- mmif.serialize module
2
- =====================
1
+ mmif.serialize package
2
+ ======================
3
3
4
- mmif.serialize.model module
4
+ Core package to provide serialization and deserialization of MMIF format.
5
+
6
+ ``model `` module
5
7
---------------------------
6
8
7
9
.. automodule :: mmif.serialize.model
8
10
:members:
9
11
:undoc-members:
10
12
:show-inheritance:
11
13
12
- mmif.serialize.mmif module
14
+ `` mmif `` module
13
15
--------------------------
14
16
15
17
.. automodule :: mmif.serialize.mmif
16
18
:members:
17
19
:undoc-members:
18
20
:show-inheritance:
19
21
20
- mmif.serialize. view module
22
+ `` view `` module
21
23
--------------------------
22
24
23
25
.. automodule :: mmif.serialize.view
24
26
:members:
25
27
:undoc-members:
26
28
:show-inheritance:
27
29
28
- mmif.serialize. annotation module
30
+ `` annotation `` module
29
31
--------------------------------
30
32
31
33
.. automodule :: mmif.serialize.annotation
Original file line number Diff line number Diff line change 1
- mmif.utils module
2
- =================
1
+ mmif.utils package
2
+ ==================
3
3
4
- mmif.utils.video_document_helper module
4
+ Package containing utility modules for handling different types of source
5
+ documents, and general implementation of common data structures and
6
+ algorithms.
7
+
8
+ ``video_document_helper `` module
5
9
----------------------------------------
6
10
7
11
.. automodule :: mmif.utils.video_document_helper
8
12
:members:
9
13
:undoc-members:
10
14
:show-inheritance:
11
15
12
- mmif.utils.sequence_helper module
16
+ ``text_document_helper `` module
17
+ ---------------------------------
18
+
19
+ .. automodule :: mmif.utils.sequence_helper
20
+ :members:
21
+ :undoc-members:
22
+ :show-inheritance:
23
+
24
+ ``sequence_helper `` module
13
25
---------------------------------
14
26
15
27
.. automodule :: mmif.utils.sequence_helper
16
28
:members:
17
29
:undoc-members:
18
30
:show-inheritance:
31
+
32
+ ``sequence_helper `` module
33
+ ---------------------------------
34
+
35
+ .. automodule :: mmif.utils.sequence_helper
36
+ :members:
37
+ :undoc-members:
38
+ :show-inheritance:
39
+
Original file line number Diff line number Diff line change 1
1
mmif.vocabulary module
2
2
======================
3
3
4
- mmif.vocabulary.annotation\_ types module
5
- ----------------------------------------
4
+ Module contains Enum-like classes for CLAMS vocabulary.
6
5
7
- .. automodule :: mmif.vocabulary.annotation_types
6
+ .. autoclass :: mmif.vocabulary.ThingTypesBase
7
+ :show-inheritance:
8
+ .. autoclass :: mmif.vocabulary.ThingType
8
9
:members:
9
10
:undoc-members:
10
11
:show-inheritance:
11
12
12
- mmif.vocabulary.document\_ types module
13
- --------------------------------------
13
+ .. autoclass :: mmif.vocabulary.ClamsTypesBase
14
+ :show-inheritance:
15
+ .. autoclass :: mmif.vocabulary.AnnotationTypesBase
16
+ :show-inheritance:
17
+ .. autoclass :: mmif.vocabulary.DocumentTypesBase
18
+ :show-inheritance:
19
+
20
+ .. autoclass :: mmif.vocabulary.AnnotationTypes
21
+ :members:
22
+ :undoc-members:
23
+ :show-inheritance:
14
24
15
- .. automodule :: mmif.vocabulary.document_types
25
+ .. autoclass :: mmif.vocabulary.DocumentTypes
16
26
:members:
17
27
:undoc-members:
18
28
:show-inheritance:
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ def get_last_contentful_view(self) -> Optional[View]:
120
120
Returns the last view that is contentful, i.e., has no error or warning .
121
121
"""
122
122
for view in reversed (self ._items .values ()):
123
- if 'error' not in view .metadata and 'warning ' not in view .metadata :
123
+ if 'error' not in view .metadata and 'warnings ' not in view .metadata :
124
124
return view
125
125
126
126
def get_last_view (self ) -> Optional [View ]:
Original file line number Diff line number Diff line change 1
- from mmif .utils import video_document_helper
You can’t perform that action at this time.
0 commit comments