mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-16 08:06:14 +00:00
Apply patch [skip ci]
This commit is contained in:
parent
67380e040c
commit
32efc3eb5c
@ -6,7 +6,7 @@ from langchain_text_splitters.base import TextSplitter, Tokenizer, split_text_on
|
||||
|
||||
|
||||
class SentenceTransformersTokenTextSplitter(TextSplitter):
|
||||
"""Splitting text to tokens using sentence model tokenizer."""
|
||||
"""Splitting text to tokens using transformer model tokenizer."""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
@ -111,3 +111,4 @@ class SentenceTransformersTokenTextSplitter(TextSplitter):
|
||||
)
|
||||
return cast("list[int]", token_ids_with_start_and_end_token_ids)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user