two used approaches, lexical analysis and machine 
learning approaches. 
2.2.1  Lexical Analysis Approach (Linguistic) 
The main task in this approach (Linov, Klekovkina, 
2012) is the design of lexicons or opinion 
dictionaries. Their goal is to list as many opinion-
bearing words as possible. These words, then, make 
it possible to classify the texts in two categories 
(positive or negative) or three (positive, negative and 
neutral). The quality of classifi cation in this 
approach depends on the quality of the lexicon. 
2.2.2  Machine Learning Approach 
This approach consists on representing each 
comment as a set of variables, and then building a 
model from text examples whose label is already 
known. The template is used to assign a class to a 
new unlabeled comment (Sanders et al., 2018). 
Machine learning techniques such as SVM 
(Alessandro, 2016), Bayesian Classifier (Marty, 
2016), and others (Herma, Saifia, 2014). They 
perform better than linguistic methods. These 
techniques require annotated databases (tedious 
annotation task). The difficulty of interpreting the 
learned models and the genericity of the model 
depends on the data in the learning corpus. The 
classification of texts in sentiment analysis 
(Sebastiani, 2012) shows a great precision. 
However, this precision is obtained only with a 
representative collection of labeled learning texts 
and a rigorous features selection. The classifier 
trained on texts in one field in most cases does not 
work with other domains (Chabbou, Bakhouche, 
2016). Deep learning is making significant progress 
in data recognition and classification. Traditional 
machine learning classification algorithms do not 
perform well in sentiment analysis compared to 
Deep Learning. The latter is based on neural 
networks. It has been developed a lot thanks to the 
evolution of technologies and computing power. 
2.3 Deep Learning 
Artificial Nural Networks (ANNs) are highly 
connected networks of elementary processors 
operating in parallel. Each elementary processor 
(artificial neuron) calculates a single output based on 
the information it receives. 
In Figure 1, each entry of the artificial neuron 
x(n) is multiplied by a connecting weight w(n). 
These products are summed and fed by a transfer 
function (Wira, 2009). 
 
Figure 1: Structure of an artificial neuron (Roserbrock, 
2017). 
Deep Learning (Deep Neural Networks) belongs 
to the family of ANN algorithms (Buduma, 2017) 
(Roserbrock, 2017) (Sugomori et al., 2017) (Skansi, 
2018). It is a set of automatic learning methods 
attempting to model data at a high level of 
abstraction through articulated architectures of 
different non-linear transformations. This technique 
has allowed important and rapid progress in the field 
of sentiment analysis. Unlike traditional Machine 
Learning, the essential characteristics of the 
treatment are no longer identified by human 
treatment in a previous algorithm, but directly by the 
Deep Learning algorithm. In these architectures, the 
input data passes through several computing layers 
before producing an output. The results of the first 
layer of neurons serve as input to the calculation of 
the next layer and so on. 
 
Figure 2: Multi-layer deep neural network (Do et al., 
2019). 
The first layers of the deep neural network allow to 
extract simple characteristics that the following 
layers combine to form increasingly complex and 
abstract concepts: assemblies of contours in patterns, 
patterns in parts of objects, parts in objects etc. The 
more we increase the number of layers, the more the 
neural networks learns complicated abstract things, 
corresponding more and more to the way a human 
reasoning. 
There are different types of deep neural 
networks, multi-layered perceptrons, auto-encoders, 
CNN (convolutional neural networks), and recursive 
RNN (recurrent neural networks). RNNs are 
designed to learn from sequential information where