Skip to content

Commit

Permalink
Fix minor typo in readme (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
FullMetalMeowchemist authored Nov 14, 2023
1 parent ff33090 commit bd3fe60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bindings/python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ from semantic_text_splitter import HuggingFaceTextSplitter
from tokenizers import Tokenizer

# Maximum number of tokens in a chunk
max_characters = 1000
max_tokens = 1000
# Optionally can also have the splitter not trim whitespace for you
tokenizer = Tokenizer.from_pretrained("bert-base-uncased")
splitter = HuggingFaceTextSplitter(tokenizer, trim_chunks=False)

chunks = splitter.chunks("your document text", max_characters)
chunks = splitter.chunks("your document text", max_tokens)
```

### With Tiktoken Tokenizer
Expand Down

0 comments on commit bd3fe60

Please sign in to comment.