You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ModuleNotFoundError Traceback (most recent call last)
Cell In [1], line 1
----> 1 import tiktoken
3 # Load the c1100k base tokenizer which is designed to work with the ada-002 model
4 tokenizer = tiktoken.get_encoding("c1100k_base")
ModuleNotFoundError: No module named 'tiktoken'
The text was updated successfully, but these errors were encountered:
I have install tokenizer using when I try to call it with:
import tiktoken
tokenizer = tiktoken.get_encoding("cl100k_base")
df = pd.read_csv('processed/scraped.csv', index_col=0)
df.columns = ['title', 'text']
df['n_tokens'] = df.text.apply(lambda x: len(tokenizer.encode(x)))
df.n_tokens.hist()
I get the following problem
ModuleNotFoundError Traceback (most recent call last)
Cell In [1], line 1
----> 1 import tiktoken
3 # Load the c1100k base tokenizer which is designed to work with the ada-002 model
4 tokenizer = tiktoken.get_encoding("c1100k_base")
ModuleNotFoundError: No module named 'tiktoken'
The text was updated successfully, but these errors were encountered: