Skip to content

Commit c011ac0

Browse files
committed
Merge branch 'release/6.1.1'
2 parents 7d22cfb + 61da01a commit c011ac0

3 files changed

Lines changed: 13 additions & 8 deletions

File tree

doc/source/changelog.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,15 @@
22
Changelog
33
#########
44

5+
Version 6.1.1 (2025-12-07)
6+
~~~~~~~~~~~~~~~~~~~~~~~~~~
7+
8+
- fix: fix warning about invalid espace sequence
9+
510
Version 6.1.0 (2025-09-19)
611
~~~~~~~~~~~~~~~~~~~~~~~~~~
712

8-
- BREAKING: update `STMLoader` to return `meeteval.io.SegLST` instances
13+
- BREAKING: update `STMLoader` to return `meeteval.io.SegLST` instances
914

1015
Version 6.0.0 (2025-09-09)
1116
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/pyannote/database/loader.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def load_trial(file_trial):
8787
List of trial
8888
"""
8989

90-
trials = pd.read_table(file_trial, sep="\s+", names=["reference", "uri1", "uri2"])
90+
trials = pd.read_table(file_trial, sep=r"\s+", names=["reference", "uri1", "uri2"])
9191

9292
for _, reference, uri1, uri2 in trials.itertuples():
9393
yield {"reference": reference, "uri1": uri1, "uri2": uri2}
@@ -323,7 +323,7 @@ def __init__(self, mapping: Path):
323323
dtype = {
324324
"uri": str,
325325
}
326-
self.data_ = pd.read_csv(mapping, names=names, dtype=dtype, sep="\s+")
326+
self.data_ = pd.read_csv(mapping, names=names, dtype=dtype, sep=r"\s+")
327327

328328
# get colum 'value' dtype, allowing us to acces it during subset
329329
self.dtype = self.data_.dtypes["value"]

src/pyannote/database/util.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)