mirth commited on
Commit
6293a74
·
verified ·
1 Parent(s): c244154

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -30,10 +30,10 @@ I've made a small python library for this model: [chonky](https://github.com/mir
30
  Here is the usage:
31
 
32
  ```
33
- from chonky import TextSplitter
34
 
35
  # on the first run it will download the transformer model
36
- splitter = TextSplitter(device="cpu")
37
 
38
  text = """Before college the two main things I worked on, outside of school, were writing and programming. I didn't write essays. I wrote what beginning writers were supposed to write then, and probably still are: short stories. My stories were awful. They had hardly any plot, just characters with strong feelings, which I imagined made them deep. The first programs I tried writing were on the IBM 1401 that our school district used for what was then called "data processing." This was in 9th grade, so I was 13 or 14. The school district's 1401 happened to be in the basement of our junior high school, and my friend Rich Draves and I got permission to use it. It was like a mini Bond villain's lair down there, with all these alien-looking machines — CPU, disk drives, printer, card reader — sitting up on a raised floor under bright fluorescent lights."""
39
 
 
30
  Here is the usage:
31
 
32
  ```
33
+ from chonky import ParagraphSplitter
34
 
35
  # on the first run it will download the transformer model
36
+ splitter = ParagraphSplitter(device="cpu")
37
 
38
  text = """Before college the two main things I worked on, outside of school, were writing and programming. I didn't write essays. I wrote what beginning writers were supposed to write then, and probably still are: short stories. My stories were awful. They had hardly any plot, just characters with strong feelings, which I imagined made them deep. The first programs I tried writing were on the IBM 1401 that our school district used for what was then called "data processing." This was in 9th grade, so I was 13 or 14. The school district's 1401 happened to be in the basement of our junior high school, and my friend Rich Draves and I got permission to use it. It was like a mini Bond villain's lair down there, with all these alien-looking machines — CPU, disk drives, printer, card reader — sitting up on a raised floor under bright fluorescent lights."""
39