Skip to content

NeuralNetwork Language is a console application that uses a single-layer neural network to identify the language of a given text. It trains on data in the trainData folder and predicts the language of texts in the testData folder or manually inputted text. The application supports multiple languages as long as they are correctly labeled.

License

Notifications You must be signed in to change notification settings

PejperO/NeuralNetwork-Language

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NeuralNetwork Language

A console application that, using simple artificial intelligence, aims to recognize in which language a given text is written.

The single-layer neural network learns on a training set in the trainData folder - regardless of the number of folders (provided they are properly described).

Testing the files in the testData folder

The program, using the data set in the testData folder, tries to predict in which language each .txt file was written.

German test:
0. correct
1. correct
2. correct
3. correct
4. correct

English test:
0. incorrect
1. correct
2. correct
3. correct
4. correct

French test:
0. correct
1. correct
2. correct
3. correct
4. correct

Polish test:
0. incorrect
1. correct
2. correct
3. correct
4. incorrect

testing manually typed text into the console

The application also has the ability to check the text manually entered into the console.

Enter a sentence: 
In Boston engagierte sich Severance bald bei mehreren Organisationen mit unterschiedlichen Reformzielen.

Your sentence is written in German

What I Learned

  • perceptron operation
  • what is a single-layer neural network
  • how to teach artificial intelligence
  • reading all the files given in the path, regardless of their number

About

NeuralNetwork Language is a console application that uses a single-layer neural network to identify the language of a given text. It trains on data in the trainData folder and predicts the language of texts in the testData folder or manually inputted text. The application supports multiple languages as long as they are correctly labeled.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages