Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notebook Issue In Google Colab #74

Open
kelixirr opened this issue May 13, 2024 · 0 comments
Open

Notebook Issue In Google Colab #74

kelixirr opened this issue May 13, 2024 · 0 comments

Comments

@kelixirr
Copy link

In the collab notebook here: https://colab.research.google.com/drive/1y0KnCFZvGVf_odSfcNAws6kcDD7HsI0L, refer to the sentencepice section. Defining the options dictionary using dict and then unpacking it results in TypeError: 'Dictionary' object is not callable

import sentencepiece as spm
import os

options = dict (
  # input spec
  input="toy.txt",
  input_format="text",
)

I fixed it using a normal dictionary.

options = {
  # input spec
  "input": "data.txt",
  "input_format": "text",
}

What could be the reason?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant