We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2eac061 commit fa446e9Copy full SHA for fa446e9
1 file changed
turftopic/late.py
@@ -351,7 +351,7 @@ def transform(
351
chunks = get_document_chunks(raw_documents, offsets)
352
out_array = self.model.transform(chunks, embeddings=flat_embeddings)
353
if self.pooling is None:
354
- return unflatten_repr(out_array, lengths)
+ return unflatten_repr(out_array, lengths), offsets
355
else:
356
return pool_flat(out_array, lengths)
357
@@ -370,7 +370,7 @@ def fit_transform(
370
chunks, embeddings=flat_embeddings
371
)
372
373
374
375
376
0 commit comments