Skip to content

[Bug] Not working with nltk  #81

@guidev

Description

@guidev

Is this a new bug?

  • I believe this is a new bug
  • I have searched the existing issues, and I could not find an existing issue for this bug

Current Behavior

nltk.download("punkt") fails for nltk v 3.9.x

@staticmethod
  def nltk_setup() -> None:
      try:
          nltk.data.find("tokenizers/punkt")
      except LookupError:
          nltk.download("punkt")

      try:
          nltk.data.find("corpora/stopwords")
      except LookupError:
          nltk.download("stopwords")

Here's a full explanation nltk/nltk#3293

Expected Behavior

pinecone-text should work with the latest nltk version

Steps To Reproduce

nltk/nltk#3293

Relevant log output

No response

Environment

- **OS**:
- **Language version**:
- **Pinecone client version**:

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions