Skip to content
This repository was archived by the owner on Sep 18, 2024. It is now read-only.

Commit 3075487

Browse files
committed
Merge branch 'master' into redesign
2 parents f3c31de + 20415ce commit 3075487

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

keras_preprocessing/text.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def text_to_word_sequence(text,
3131
# Arguments
3232
text: Input text (string).
3333
filters: list (or concatenation) of characters to filter out, such as
34-
punctuation. Default: `!"#$%&()*+,-./:;<=>?@[\\]^_`{|}~\t\n`,
34+
punctuation. Default: ``!"#$%&()*+,-./:;<=>?@[\\]^_`{|}~\t\n``,
3535
includes basic punctuation, tabs, and newlines.
3636
lower: boolean. Whether to convert the input to lowercase.
3737
split: str. Separator for word splitting.
@@ -74,7 +74,7 @@ def one_hot(text, n,
7474
text: Input text (string).
7575
n: int. Size of vocabulary.
7676
filters: list (or concatenation) of characters to filter out, such as
77-
punctuation. Default: `!"#$%&()*+,-./:;<=>?@[\\]^_`{|}~\t\n`,
77+
punctuation. Default: ``!"#$%&()*+,-./:;<=>?@[\\]^_`{|}~\t\n``,
7878
includes basic punctuation, tabs, and newlines.
7979
lower: boolean. Whether to set the text to lowercase.
8080
split: str. Separator for word splitting.
@@ -106,7 +106,7 @@ def hashing_trick(text, n,
106106
it is not consistent across different runs, while 'md5'
107107
is a stable hashing function.
108108
filters: list (or concatenation) of characters to filter out, such as
109-
punctuation. Default: `!"#$%&()*+,-./:;<=>?@[\\]^_`{|}~\t\n`,
109+
punctuation. Default: ``!"#$%&()*+,-./:;<=>?@[\\]^_`{|}~\t\n``,
110110
includes basic punctuation, tabs, and newlines.
111111
lower: boolean. Whether to set the text to lowercase.
112112
split: str. Separator for word splitting.

0 commit comments

Comments
 (0)