@@ -15,7 +15,7 @@ class _RangeRow:
1515 refs : List [Any ]
1616 segment : List [str ]
1717 is_sentence_start : bool = False
18- data_type : TextRowContentType = TextRowContentType .SEGMENT
18+ content_type : TextRowContentType = TextRowContentType .SEGMENT
1919
2020 @property
2121 def is_in_range (self ):
@@ -38,7 +38,7 @@ def __init__(self, n: int):
3838 self .text_id = ""
3939 self .versifications : Optional [List [Versification ]] = None
4040 self .row_ref_comparer = None
41- self .data_type = TextRowContentType .SEGMENT
41+ self .content_type = TextRowContentType .SEGMENT
4242
4343 @property
4444 def is_in_range (self ) -> bool :
@@ -47,7 +47,7 @@ def is_in_range(self) -> bool:
4747 def add_text_row (self , row : TextRow , index : int ):
4848 self .text_id = row .text_id
4949 self .rows [index ].refs .append (row .ref )
50- self .rows [index ].data_type = row .data_type
50+ self .rows [index ].content_type = row .content_type
5151 if self .rows [index ].is_empty :
5252 self .rows [index ].is_sentence_start = row .is_sentence_start
5353 self .rows [index ].segment .extend (row .segment )
@@ -57,7 +57,7 @@ def create_row(self) -> NParallelTextRow:
5757 reference_refs : List [Any ] = [r .refs [0 ] if len (r .refs ) > 0 else None for r in self .rows if len (r .refs ) > 0 ]
5858 for i in range (len (self .rows )):
5959 row = self .rows [i ]
60- self .data_type = row .data_type
60+ self .content_type = row .content_type
6161
6262 if (
6363 self .versifications is not None
@@ -67,7 +67,7 @@ def create_row(self) -> NParallelTextRow:
6767 refs [i ] = [cast (ScriptureRef , r ).change_versification (self .versifications [i ]) for r in reference_refs ]
6868 else :
6969 refs [i ] = row .refs .copy ()
70- n_parallel_text_row = NParallelTextRow (self .text_id , refs , self .data_type )
70+ n_parallel_text_row = NParallelTextRow (self .text_id , refs , self .content_type )
7171 n_parallel_text_row .n_segments = [r .segment .copy () for r in self .rows ]
7272 n_parallel_text_row .n_flags = [
7373 TextRowFlags .SENTENCE_START if r .is_sentence_start else TextRowFlags .NONE for r in self .rows
@@ -293,7 +293,7 @@ def _create_rows(
293293 yield range_info .create_row ()
294294
295295 default_refs = [[r .ref for r in rows if r is not None ][0 ]]
296- data_type = TextRowContentType .SEGMENT
296+ content_type = TextRowContentType .SEGMENT
297297
298298 text_id : Optional [str ] = None
299299 refs : List [List [Any ]] = []
@@ -304,7 +304,7 @@ def _create_rows(
304304 for i in range (len (rows )):
305305 row = rows [i ]
306306 if row is not None :
307- data_type = row .data_type
307+ content_type = row .content_type
308308 text_id = text_id or row .text_id
309309 if self .corpora [i ].is_scripture :
310310 refs [i ] = self ._correct_versification ([row .ref ] if row .ref is None else default_refs , i )
@@ -321,7 +321,7 @@ def _create_rows(
321321 )
322322 refs = [r or default_refs for r in refs ]
323323
324- new_row = NParallelTextRow (cast (str , text_id ), refs , data_type )
324+ new_row = NParallelTextRow (cast (str , text_id ), refs , content_type )
325325 new_row .n_segments = [r .segment if r is not None else [] for r in rows ]
326326 new_row .n_flags = flags
327327 yield new_row
0 commit comments