{
  "id": 121106,
  "title": "embeddings are zipped now!",
  "url": "/competitions/quora-insincere-questions-classification/discussion/121106",
  "author_name": "",
  "post_date": "2019-12-11T05:56:40.419730800Z",
  "votes": 1,
  "comment_count": 3,
  "views": 0,
  "content": "<p>Kaggle has zipped all embeddings into one file of 5.6gb. how are we going to use them provided that have less than 5gb of space for a notebook.</p>",
  "messages": [
    {
      "id": "692304",
      "postDate": "12/11/2019 05:56:40",
      "content": "<p>Kaggle has zipped all embeddings into one file of 5.6gb. how are we going to use them provided that have less than 5gb of space for a notebook.</p>",
      "rawMarkdown": "Kaggle has zipped all embeddings into one file of 5.6gb. how are we going to use them provided that have less than 5gb of space for a notebook.",
      "votes": null
    },
    {
      "id": "704678",
      "postDate": "12/27/2019 20:33:18",
      "content": "<p>Access file without unzip it. \ne.g.\n<code>import zipfile\narchive = zipfile.ZipFile('../input/quora-insincere-questions-classification/embeddings.zip', 'r')\nfor o in tqdm(archive.open('glove.840B.300d/glove.840B.300d.txt', 'r'))\n</code></p>\n\n<p>https://stackoverflow.com/questions/19371860/python-open-file-from-zip-without-temporary-extracting-it</p>",
      "rawMarkdown": "Access file without unzip it. \ne.g.\n`import zipfile\narchive = zipfile.ZipFile('../input/quora-insincere-questions-classification/embeddings.zip', 'r')\nfor o in tqdm(archive.open('glove.840B.300d/glove.840B.300d.txt', 'r'))\n`\n\n[https://stackoverflow.com/questions/19371860/python-open-file-from-zip-without-temporary-extracting-it]()",
      "votes": null
    },
    {
      "id": "762695",
      "postDate": "03/03/2020 18:18:07",
      "content": "<p>Could you eloborate on the solution? I can't get it to work.</p>",
      "rawMarkdown": "Could you eloborate on the solution? I can't get it to work.",
      "votes": null
    },
    {
      "id": "823675",
      "postDate": "04/27/2020 19:53:08",
      "content": "<ol>\n<li>import zipfile\n2.archive = zipfile.ZipFile('/kaggle/input/quora-insincere-questions-classification/embeddings.zip', 'r') \n3.news_path=archive.open('GoogleNews-vectors-negative300/GoogleNews-vectors-negative300.bin', 'r')</li>\n</ol>\n\n<p>The variable news_path has the filename now. You can use it as fo ex:\n<code>embeddings_index = KeyedVectors.load_word2vec_format(news_path, binary=True)</code></p>",
      "rawMarkdown": "1. import zipfile\n2.archive = zipfile.ZipFile('/kaggle/input/quora-insincere-questions-classification/embeddings.zip', 'r') \n3.news_path=archive.open('GoogleNews-vectors-negative300/GoogleNews-vectors-negative300.bin', 'r')\n\nThe variable news_path has the filename now. You can use it as fo ex:\n`embeddings_index = KeyedVectors.load_word2vec_format(news_path, binary=True)`",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 704678,
      "author_name": "shindejitu77",
      "author_url": "",
      "post_date": "12/27/2019 20:33:18",
      "content": "<p>Access file without unzip it. \ne.g.\n<code>import zipfile\narchive = zipfile.ZipFile('../input/quora-insincere-questions-classification/embeddings.zip', 'r')\nfor o in tqdm(archive.open('glove.840B.300d/glove.840B.300d.txt', 'r'))\n</code></p>\n\n<p>https://stackoverflow.com/questions/19371860/python-open-file-from-zip-without-temporary-extracting-it</p>",
      "votes": null,
      "replies": [
        {
          "id": 762695,
          "author_name": "parthbatra",
          "author_url": "",
          "post_date": "03/03/2020 18:18:07",
          "content": "<p>Could you eloborate on the solution? I can't get it to work.</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 823675,
      "author_name": "fredthered2",
      "author_url": "",
      "post_date": "04/27/2020 19:53:08",
      "content": "<ol>\n<li>import zipfile\n2.archive = zipfile.ZipFile('/kaggle/input/quora-insincere-questions-classification/embeddings.zip', 'r') \n3.news_path=archive.open('GoogleNews-vectors-negative300/GoogleNews-vectors-negative300.bin', 'r')</li>\n</ol>\n\n<p>The variable news_path has the filename now. You can use it as fo ex:\n<code>embeddings_index = KeyedVectors.load_word2vec_format(news_path, binary=True)</code></p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "692304": "Kaggle has zipped all embeddings into one file of 5.6gb. how are we going to use them provided that have less than 5gb of space for a notebook.",
    "704678": "Access file without unzip it. \ne.g.\n`import zipfile\narchive = zipfile.ZipFile('../input/quora-insincere-questions-classification/embeddings.zip', 'r')\nfor o in tqdm(archive.open('glove.840B.300d/glove.840B.300d.txt', 'r'))\n`\n\n[https://stackoverflow.com/questions/19371860/python-open-file-from-zip-without-temporary-extracting-it]()",
    "762695": "Could you eloborate on the solution? I can't get it to work.",
    "823675": "1. import zipfile\n2.archive = zipfile.ZipFile('/kaggle/input/quora-insincere-questions-classification/embeddings.zip', 'r') \n3.news_path=archive.open('GoogleNews-vectors-negative300/GoogleNews-vectors-negative300.bin', 'r')\n\nThe variable news_path has the filename now. You can use it as fo ex:\n`embeddings_index = KeyedVectors.load_word2vec_format(news_path, binary=True)`"
  },
  "source": "meta"
}