Skip to content

NLP setup functions fails (locally, also on colab) [Numpy issue - non-LTS version (v22.x) of Ubuntu] #2441

@SRoy1024

Description

@SRoy1024

Describe the bug

While trying to recreate the steps from https://pycaret.gitbook.io/docs/get-started/quickstart#natural-language-processing

the code fragment s = setup(data, target = 'en') fails

To Reproduce

  1. On Ubuntu:
    Description: Ubuntu Jammy Jellyfish (development branch)
    Release: 22.04
    Codename: jammy

conda create --name env_1Pycaret python=3.9
conda activate env_1Pycaret
pip install pycaret
python -m spacy download en_core_web_sm

1a: open Test_NLP.ipynb in vscode

# load dataset
from pycaret.datasets import get_data
data = get_data('kiva')

# print first document
print(data['en'][0])

# init setup
from pycaret.nlp import *
s = setup(data, target = 'en')
  1. On Colab
!pip install pycaret
# load dataset
from pycaret.datasets import get_data
data = get_data('kiva')
# print first document
print(data['en'][0])
# init setup
from pycaret.nlp import *
s = setup(data, target = 'en')

Expected behavior
(https://1927305171-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFLpROzBBqocwXBoemLJC%2Fuploads%2FD0iN8ziE9gqEowySsO9T%2Fimage.png?alt=media&token=da4392e8-2b41-4657-827d-3cd7d78a12d9)

Additional context
image

image

Versions

'2.3.10'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions