Siamese Neural Networks (SNN) are used to find the similarities between two inputs by determining the difference between the outputs from the inputs given. Sometimes Siamese Neural Network is called Similarity Learning and Twin neural network because the architecture of SNN’s Algorithm works with two inputs.

Siamese Neural Network

Bag of Words (BoW) Algorithm NLP
The Bag of Words most commonly used in methods of document classifications where the repetition or occurrence of each word is used as the feature for training the classifier.