Skip to content

Commit de1528f

Browse files
Fixed column adding in integration test
1 parent 2604951 commit de1528f

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

tests/test_integration.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,15 @@
1111
from sklearn.datasets import fetch_20newsgroups
1212
from sklearn.decomposition import PCA
1313

14-
from turftopic import (GMM, AutoEncodingTopicModel, ClusteringTopicModel,
15-
FASTopic, KeyNMF, SemanticSignalSeparation, load_model)
14+
from turftopic import (
15+
GMM,
16+
AutoEncodingTopicModel,
17+
ClusteringTopicModel,
18+
FASTopic,
19+
KeyNMF,
20+
SemanticSignalSeparation,
21+
load_model,
22+
)
1623

1724

1825
def batched(iterable, n: int):
@@ -226,7 +233,7 @@ def test_cross_lingual():
226233
ds = load_dataset(
227234
"aiana94/polynews-parallel", "dan_Latn-hun_Latn", split="train"
228235
)
229-
corpus = ds["src"] + ds["tgt"]
236+
corpus = list(ds["src"]) + list(ds["tgt"])
230237
model = KeyNMF(5, cross_lingual=True)
231238
model.fit(corpus)
232239
model.print_topics()

0 commit comments

Comments
 (0)