Skip to content

Commit 7b02814

Browse files
committed
minor doc update
1 parent c74a606 commit 7b02814

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

imodelsx/embgam/embed.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
import torch
55

66
def generate_ngrams_list(
7-
sentence,
7+
sentence: str,
88
ngrams: int,
99
tokenizer_ngrams,
1010
all_ngrams=False,
1111
parsing: str='',
1212
nlp_chunks=None,
1313
):
14-
"""get list of grams
14+
"""Get list of ngrams from sentence
1515
1616
Params
1717
------
@@ -119,7 +119,7 @@ def embed_and_sum_function(
119119
tokenizer_embeddings
120120
tokenizing for the embedding model
121121
tokenizer_ngrams
122-
tokenizing the ngrams (word-based tokenization is probably more interpretable)
122+
tokenizing the ngrams (word-based tokenization is more interpretable)
123123
parsing: str
124124
whether to use parsing rather than extracting all ngrams
125125
nlp_chunks

0 commit comments

Comments
 (0)