Skip to content

No module named 'transformers' #40

@laurentm255

Description

@laurentm255

Hi !
Well done on your work on this knowledge graph project. This is exactly what I’m focusing on as an AI consultant !

I hope my issue is easy to fix. I’m hopeful because no one seems to have encountered it, judging from the issue history here. Might come from my setup.

Here is the issue : in the second cell of ner.ipynb I get the message:

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Cell In[2], line 1
----> 1 from transformers import pipeline
      3 ## Roberta based NER
      4 # ner = pipeline("token-classification", model="2rtl3/mn-xlm-roberta-base-named-entity", aggregation_strategy="simple")
      5 ner = pipeline("token-classification", model="dslim/bert-large-NER", aggregation_strategy="simple")

ModuleNotFoundError: No module named 'transformers'

Do you see how to fix this?
Thanks again for your work. And I’m available to contribute.
Laurent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions