Skip to content

Commit

Permalink
Add missing quotation marks to to CLIPTokenizer docs (#1610)
Browse files Browse the repository at this point in the history
  • Loading branch information
ProGamerGov authored Feb 14, 2022
1 parent 7209421 commit 7937703
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchtext/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ def _tokenize(self, text: str) -> List[str]:
A list of bpe token ids represents each bpe tokens
For example: "awesome,awe"
--> bpe --> bpe tokens: ["aw", "esome"], [","], ["aw", e]
--> bpe --> bpe tokens: ["aw", "esome"], [","], ["aw", "e"]
--> bpe encode --> bpe token ids: [707, 5927, 11, 707, 68]
"""
text = text.lower().strip()
Expand Down

0 comments on commit 7937703

Please sign in to comment.