Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Converting into exe file through pyinstaller-> spacy cannot find factory for 'curated transformer' #13422

Closed
estherkim083 opened this issue Apr 9, 2024 · 1 comment
Labels
feat / transformer Feature: Transformer install Installation issues

Comments

@estherkim083
Copy link


import spacy
import spacy_curated_transformers
# import spacy_transformers
import curated_transformers
import spacy_alignments
import spacy_legacy
import spacy_loggers
import spacy_pkuseg
import os
nlp = spacy.load(os.getcwd()+'\\en_core_web_trf-3.7.3')

x= input()
doc= nlp(x)

result =[]
for sent in doc.sents:
    result.append(sent.text)

print(result)

I wanted to turn the above code into exe file.
However, [valueerror: [e002] can't find factory for 'curated transformer' for language english (en)] error occurs...
I used pyinstaller to convert it into exe file. In the pyinstaller, I included spacy, spacy_curated_transformers, curated_transformers into the hidden import.
I wonder how to make this executable file configure the curated transformer factory...
Please help me.
screenshot

My Environment

  • Operating System: Windows 11
  • Python Version Used: 3.11.8
  • spaCy Version Used: 3.7.4
  • Environment Information:
@svlandeg svlandeg added install Installation issues feat / transformer Feature: Transformer labels Apr 9, 2024
@svlandeg
Copy link
Member

svlandeg commented Apr 9, 2024

Hi! Let me move this to the discussion forum.

@explosion explosion locked and limited conversation to collaborators Apr 9, 2024
@svlandeg svlandeg converted this issue into discussion #13423 Apr 9, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
feat / transformer Feature: Transformer install Installation issues
Projects
None yet
Development

No branches or pull requests

2 participants