title: Value Error: nlp.add_pipe(LanguageDetector(), name='language_detector', last=True)
body: <p>I found this below code from kaggel, every time I run the code gets <strong>ValueError</strong>.
  This is because of new version of <strong>SpaCy</strong>.Please <strong>Help</strong>
  Thanks in advance</p>
  <pre><code>import scispacy
  import spacy
  import en_core_sci_lg
  from spacy_langdetect import LanguageDetector
  
  nlp = en_core_sci_lg.load(disable=[&quot;tagger&quot;, &quot;ner&quot;])
  nlp.max_length = 2000000
  nlp.add_pipe(LanguageDetector(), name='language_detector', last=True)
  </code></pre>
  <p>ValueError: [E966] <code>nlp.add_pipe</code> now takes the string name of the registered component factory, not a callable component. Expected string, but got &lt;spacy_langdetect.spacy_langdetect.LanguageDetector object at 0x00000216BB4C8D30&gt; (name: 'language_detector').</p>
  <ul>
  <li><p>If you created your component with <code>nlp.create_pipe('name')</code>: remove nlp.create_pipe and call <code>nlp.add_pipe('name')</code> instead.</p>
  </li>
  <li><p>If you passed in a component like <code>TextCategorizer()</code>: call <code>nlp.add_pipe</code> with the string name instead, e.g. <code>nlp.add_pipe('textcat')</code>.</p>
  </li>
  <li><p>If you're using a custom component: Add the decorator <code>@Language.component</code> (for function components) or <code>@Language.factory</code> (for class components / factories) to your custom component and assign it a name, e.g. <code>@Language.component('your_name')</code>. You can then run <code>nlp.add_pipe('your_name')</code> to add it to the pipeline.</p>
  </li>
  </ul>
  <p>I have installed:</p>
  <p>scispacy.version  :  '0.4.0'</p>
  <p>en_core_sci_lg.version  :  '0.4.0'</p>
  <p>python_version : 3.8.5</p>
  <p>spacy.version  : '3.0.3'</p>