Skip to content

nlp.pipe does not work multithreaded on OSX M1 #12588

Discussion options

You must be logged in to vote

The error message is a bit hard to understand, but it's trying to show you how you need to modify your script for use with multiprocessing:

        An attempt has been made to start a new process before the
        current process has finished its bootstrapping phase.

        This probably means that you are not using fork to start your
        child processes and you have forgotten to use the proper idiom
        in the main module:

            if __name__ == '__main__':
                freeze_support()
                ...                                           <- your code should go here

        The "freeze_support()" line can be omitted if the program
        is not going to be f…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by adrianeboyd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat / pipeline Feature: Processing pipeline and components scaling Scaling, serving and parallelizing spaCy
2 participants
Converted from issue

This discussion was converted from issue #12585 on May 02, 2023 06:02.