@@ -179,7 +179,7 @@ def load_rttm(file_rttm, keep_type="SPEAKER"):
179179 file_rttm ,
180180 names = names ,
181181 dtype = dtype ,
182- sep = "\s+" ,
182+ sep = r "\s+" ,
183183 keep_default_na = True ,
184184 )
185185
@@ -213,7 +213,7 @@ def load_stm(file_stm):
213213 dtype = {"uri" : str , "speaker" : str , "start" : float , "end" : float }
214214 data = pd .read_csv (
215215 file_stm ,
216- sep = "\s+" ,
216+ sep = r "\s+" ,
217217 usecols = [0 , 2 , 3 , 4 ],
218218 dtype = dtype ,
219219 names = list (dtype ),
@@ -250,7 +250,7 @@ def load_mdtm(file_mdtm):
250250 file_mdtm ,
251251 names = names ,
252252 dtype = dtype ,
253- sep = "\s+" ,
253+ sep = r "\s+" ,
254254 keep_default_na = False ,
255255 )
256256
@@ -281,7 +281,7 @@ def load_uem(file_uem):
281281
282282 names = ["uri" , "NA1" , "start" , "end" ]
283283 dtype = {"uri" : str , "start" : float , "end" : float }
284- data = pd .read_csv (file_uem , names = names , dtype = dtype , sep = "\s+" )
284+ data = pd .read_csv (file_uem , names = names , dtype = dtype , sep = r "\s+" )
285285
286286 timelines = dict ()
287287 for uri , parts in data .groupby ("uri" ):
@@ -306,7 +306,7 @@ def load_lab(path, uri: str = None) -> Annotation:
306306
307307 names = ["start" , "end" , "label" ]
308308 dtype = {"start" : float , "end" : float , "label" : str }
309- data = pd .read_csv (path , names = names , dtype = dtype , sep = "\s+" )
309+ data = pd .read_csv (path , names = names , dtype = dtype , sep = r "\s+" )
310310
311311 annotation = Annotation (uri = uri )
312312 for i , turn in data .iterrows ():
0 commit comments