Skip to content

January 2021

[Python] Use zipfile to compress or decompress file

Last Updated on 2021-01-21 by Clay

Python is the most popular programming language!

Introduction

Everyone is familiar with the compressed file. These compressed file means that we compress one or more files and folders into a file, which is also call archiving.

In addition to archiving, according to the different compression format algorithms, some can even compress the file size to help us better store and transmit these files.

But what if we need to restore the compressed file back to the original file? At this time, we need to decompress according to different compression formats.

Today I want to record how to use Python module zipfile to compress or decompress some fiile as ZIP format.

Read More »[Python] Use zipfile to compress or decompress file

Easy way to remove CUDA

Last Updated on 2021-01-20 by Clay

Cryptocurrency mining equipment, isometric ethereum digital currency extract, blockchain system dark blue vector illustration

Introduction

If you are familiar with the deep learning and its environment, you may often hear "CUDA". Before we starting to train our model, maybe we need to install GPU driver, CUDA and cuDNN toolkits. They can make our training have the best effect.

Read More »Easy way to remove CUDA

[Python] Convert Glove model to a format Gensim can read

Last Updated on 2021-01-02 by Clay

Python is the most popular programming language!

Introduction

Those who are familiar with natural language processing (NLP) must be familiar with Glove and Python package Gensim.

GloveGlobal Vectors for Word Representation)is a paper published by Stanford NLP Group, and it is also an open source pre-trained word embedding model. The Glove that you often see on the Internet now refers to this open source pre-trained model.

Gensim is a Python implementation of the Word2Vec paper proposed by Google in 2013, allowing us to easily train the word vector model using our own corpus via this package.

Read More »[Python] Convert Glove model to a format Gensim can read
Exit mobile version