{"action":"created","issue":{"url":"https://api.github.com/repos/explosion/spaCy/issues/2582","repository_url":"https://api.github.com/repos/explosion/spaCy","labels_url":"https://api.github.com/repos/explosion/spaCy/issues/2582/labels{/name}","comments_url":"https://api.github.com/repos/explosion/spaCy/issues/2582/comments","events_url":"https://api.github.com/repos/explosion/spaCy/issues/2582/events","html_url":"https://github.com/explosion/spaCy/issues/2582","id":343702898,"node_id":"MDU6SXNzdWUzNDM3MDI4OTg=","number":2582,"title":"Spacy nlp method running in multi thread mode by default","user":{"login":"eamonnmag","id":282396,"node_id":"MDQ6VXNlcjI4MjM5Ng==","avatar_url":"https://avatars2.githubusercontent.com/u/282396?v=4","gravatar_id":"","url":"https://api.github.com/users/eamonnmag","html_url":"https://github.com/eamonnmag","followers_url":"https://api.github.com/users/eamonnmag/followers","following_url":"https://api.github.com/users/eamonnmag/following{/other_user}","gists_url":"https://api.github.com/users/eamonnmag/gists{/gist_id}","starred_url":"https://api.github.com/users/eamonnmag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eamonnmag/subscriptions","organizations_url":"https://api.github.com/users/eamonnmag/orgs","repos_url":"https://api.github.com/users/eamonnmag/repos","events_url":"https://api.github.com/users/eamonnmag/events{/privacy}","received_events_url":"https://api.github.com/users/eamonnmag/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-07-23T16:21:09Z","updated_at":"2018-09-12T12:52:08Z","closed_at":null,"author_association":"NONE","body":"## How to reproduce the behaviour\r\n\r\n```\r\nnlp = spacy.load('en_core_web_sm')\r\narray_text = ['Hi there, this is a test' for i in range(0,10000)]\r\nprocessed = nlp(', '.join(array_text))\r\n```\r\n\r\nThis will cause 16 threads on my macbook pro to spin up for Spacy. So is Spacy running in multi-thread  mode by default? How do I disable this behaviour? I was under the impression that it would only run in multi-thread mode if I used the nlp.pipe.\r\n\r\n## Your Environment\r\n\r\n* Operating System: Mac OS High Sierra\r\n* Python Version Used: 3.6\r\n* spaCy Version Used: 2.0.3\r\n* Environment Information:  \r\n"},"comment":{"url":"https://api.github.com/repos/explosion/spaCy/issues/comments/420636588","html_url":"https://github.com/explosion/spaCy/issues/2582#issuecomment-420636588","issue_url":"https://api.github.com/repos/explosion/spaCy/issues/2582","id":420636588,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMDYzNjU4OA==","user":{"login":"honnibal","id":8059750,"node_id":"MDQ6VXNlcjgwNTk3NTA=","avatar_url":"https://avatars3.githubusercontent.com/u/8059750?v=4","gravatar_id":"","url":"https://api.github.com/users/honnibal","html_url":"https://github.com/honnibal","followers_url":"https://api.github.com/users/honnibal/followers","following_url":"https://api.github.com/users/honnibal/following{/other_user}","gists_url":"https://api.github.com/users/honnibal/gists{/gist_id}","starred_url":"https://api.github.com/users/honnibal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/honnibal/subscriptions","organizations_url":"https://api.github.com/users/honnibal/orgs","repos_url":"https://api.github.com/users/honnibal/repos","events_url":"https://api.github.com/users/honnibal/events{/privacy}","received_events_url":"https://api.github.com/users/honnibal/received_events","type":"User","site_admin":false},"created_at":"2018-09-12T12:52:08Z","updated_at":"2018-09-12T12:52:08Z","author_association":"MEMBER","body":"@davidmcclure @eamonnmag Upcoming releases of spaCy are switching to single-thread by default, as the multi-core utilisation is pretty poor (numpy is just parallelising the matrix multiplications, which is too low a unit of work).\r\n\r\nI agree that this should be in the docs in the meantime."}}
{"actor":{"display_login":"honnibal"}}