We often use pymysql package to connect and operate mysql database in python. However, you also may encounter this error: AttributeError: module ‘pymysql’ has no attribute ‘escape_string’. In this tutorial, we will introduce how to fix it.
There exists some datetime with different string formats in text. In order to save or process datetime, we should convert these different formatted time to a format. In this tutorial, we will introduce you how to do in python.
Rss feed is an important source for capturing website content. In this tutorial, we will introduce how to parse rss feed xml file and get the information we want using python feedparser.
Attention mechanism is an important method to improve the performance of deep learning model. There are two forms of attention, which one we should use? In this tutorial, we will find some tips.
In deep learning, we often use a vector to express a target feature, however, how to fuse them if we have got some features? In this tutorial, we will discuss this topic.
Pearson Correlation Coefficient can measure the strength of the relationship between two variables. We can use it as a loss to measure the correlation between two distributions in deep learning model. In this tutorial, we will create this loss function using tensorflow.
TensorFlow tf.expand_dims() allows us to add a dimension of 1 for a tensor. In this tutorial, we will use some examples to show you how to use this function.
Convolution networks have been used in text classification widely. For example: LSTM+CNN or CNN+LSTM. In this tutorial, we will introduce how to implement a cnn to text classification using tensorflow.
In text processing, we may need to visualize some labeled data using scatter plots in matplotlib. In this tutorial, we will use an example to show you how to display them.
Color is an important part in matplotlib, in this tutorial, we will list some most used in plots.