SanjarbekSaminjonov / language-classifier

Language Classifier using single layer network of perceptrons

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Language Classifier

Using Single Layer Network of Perceptrons

The aim of the project is to create a single-layer network to identify the language an input text is written in. Files contains a set of texts written in four languages – English, Polish, German and Uzbek. To classify a given text, it counts the number of occurences of each letter of the latin alphabet. Ignores all other characters – only counts the frequencies of the 26 letters of the latin alphabet.

For each text, it generates a 26-element input vector containing the number of occurences of each letter. Then normalize it:

vˆ = v / |v|

The output of the network has local representation: one neuron is assigned to each language. For a given text only the appropriate neuron should have value 1 and all others 0. To classify an input text, it selects the neuron with the maximum activation.

About

Language Classifier using single layer network of perceptrons


Languages

Language:Python 100.0%