{
  "id": 333157,
  "title": "how to import \"texthero\" without error?",
  "url": "/competitions/AI4Code/discussion/333157",
  "author_name": "",
  "post_date": "2022-06-25T02:29:36.602016700Z",
  "votes": 2,
  "comment_count": 3,
  "views": 0,
  "content": "<p>Dear all, </p>\n<p>I want to use texthero for this task but get the error when I import it.</p>\n<p>My notebook for test is here <a href=\"https://www.kaggle.com/code/hechtjp/ai4code-error-with-texthero-why?scriptVersionId=99259204\" target=\"_blank\">Link</a>.</p>\n<p>Does anyone have idea how to solve it?</p>\n<p>Thank you for your support in advance🙏</p>",
  "messages": [
    {
      "id": "1832393",
      "postDate": "06/25/2022 02:29:36",
      "content": "<p>Dear all, </p>\n<p>I want to use texthero for this task but get the error when I import it.</p>\n<p>My notebook for test is here <a href=\"https://www.kaggle.com/code/hechtjp/ai4code-error-with-texthero-why?scriptVersionId=99259204\" target=\"_blank\">Link</a>.</p>\n<p>Does anyone have idea how to solve it?</p>\n<p>Thank you for your support in advance🙏</p>",
      "rawMarkdown": "Dear all, \n\nI want to use texthero for this task but get the error when I import it.\n\nMy notebook for test is here [Link](https://www.kaggle.com/code/hechtjp/ai4code-error-with-texthero-why?scriptVersionId=99259204).\n\nDoes anyone have idea how to solve it?\n\nThank you for your support in advance🙏",
      "votes": null
    },
    {
      "id": "1835131",
      "postDate": "06/27/2022 13:56:38",
      "content": "<p>Looking at the error there is a mismatch between spacy installation:</p>\n<p><code>/opt/conda/lib/python3.7/site-packages/spacy/util.py:275: UserWarning: [W031] Model 'en_core_web_sm' (3.2.0) requires spaCy v3.2 and is incompatible with the current spaCy version (2.3.7). This may lead to unexpected results or runtime errors. To resolve this, download a newer compatible model or retrain your custom model with the current spaCy version. For more details and available updates, run: python -m spacy validate\n  warnings.warn(warn_msg)</code></p>\n<p>You might want to upgrade spacy. Try to execute the following command before importing texthero:<br>\n<code>!pip install spacy==3.2.0</code></p>",
      "rawMarkdown": "Looking at the error there is a mismatch between spacy installation:\n\n`/opt/conda/lib/python3.7/site-packages/spacy/util.py:275: UserWarning: [W031] Model 'en_core_web_sm' (3.2.0) requires spaCy v3.2 and is incompatible with the current spaCy version (2.3.7). This may lead to unexpected results or runtime errors. To resolve this, download a newer compatible model or retrain your custom model with the current spaCy version. For more details and available updates, run: python -m spacy validate\n  warnings.warn(warn_msg)`\n\nYou might want to upgrade spacy. Try to execute the following command before importing texthero:\n`!pip install spacy==3.2.0`",
      "votes": null
    },
    {
      "id": "1836231",
      "postDate": "06/28/2022 13:29:26",
      "content": "<p><a href=\"https://www.kaggle.com/njelicic\" target=\"_blank\">@njelicic</a> , thank you very much for your comments! OK I will try it💪</p>",
      "rawMarkdown": "njelicic , thank you very much for your comments! OK I will try it💪",
      "votes": null
    },
    {
      "id": "1840693",
      "postDate": "07/02/2022 13:46:41",
      "content": "<p><a href=\"https://www.kaggle.com/njelicic\" target=\"_blank\">@njelicic</a> , I tried to install spacy==3.2.0 but there are still error occurred :(<br>\nIf you have any advice to me, I appreciate you would share it 🙏</p>",
      "rawMarkdown": "njelicic , I tried to install spacy==3.2.0 but there are still error occurred :(\nIf you have any advice to me, I appreciate you would share it 🙏",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1835131,
      "author_name": "njelicic",
      "author_url": "",
      "post_date": "06/27/2022 13:56:38",
      "content": "<p>Looking at the error there is a mismatch between spacy installation:</p>\n<p><code>/opt/conda/lib/python3.7/site-packages/spacy/util.py:275: UserWarning: [W031] Model 'en_core_web_sm' (3.2.0) requires spaCy v3.2 and is incompatible with the current spaCy version (2.3.7). This may lead to unexpected results or runtime errors. To resolve this, download a newer compatible model or retrain your custom model with the current spaCy version. For more details and available updates, run: python -m spacy validate\n  warnings.warn(warn_msg)</code></p>\n<p>You might want to upgrade spacy. Try to execute the following command before importing texthero:<br>\n<code>!pip install spacy==3.2.0</code></p>",
      "votes": null,
      "replies": [
        {
          "id": 1836231,
          "author_name": "hechtjp",
          "author_url": "",
          "post_date": "06/28/2022 13:29:26",
          "content": "<p><a href=\"https://www.kaggle.com/njelicic\" target=\"_blank\">@njelicic</a> , thank you very much for your comments! OK I will try it💪</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1840693,
          "author_name": "hechtjp",
          "author_url": "",
          "post_date": "07/02/2022 13:46:41",
          "content": "<p><a href=\"https://www.kaggle.com/njelicic\" target=\"_blank\">@njelicic</a> , I tried to install spacy==3.2.0 but there are still error occurred :(<br>\nIf you have any advice to me, I appreciate you would share it 🙏</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "1832393": "Dear all, \n\nI want to use texthero for this task but get the error when I import it.\n\nMy notebook for test is here [Link](https://www.kaggle.com/code/hechtjp/ai4code-error-with-texthero-why?scriptVersionId=99259204).\n\nDoes anyone have idea how to solve it?\n\nThank you for your support in advance🙏",
    "1835131": "Looking at the error there is a mismatch between spacy installation:\n\n`/opt/conda/lib/python3.7/site-packages/spacy/util.py:275: UserWarning: [W031] Model 'en_core_web_sm' (3.2.0) requires spaCy v3.2 and is incompatible with the current spaCy version (2.3.7). This may lead to unexpected results or runtime errors. To resolve this, download a newer compatible model or retrain your custom model with the current spaCy version. For more details and available updates, run: python -m spacy validate\n  warnings.warn(warn_msg)`\n\nYou might want to upgrade spacy. Try to execute the following command before importing texthero:\n`!pip install spacy==3.2.0`",
    "1836231": "njelicic , thank you very much for your comments! OK I will try it💪",
    "1840693": "njelicic , I tried to install spacy==3.2.0 but there are still error occurred :(\nIf you have any advice to me, I appreciate you would share it 🙏"
  },
  "source": "meta"
}