Skip to content

A program that can identify wether a piece of text is written in Swedish or English.

Notifications You must be signed in to change notification settings

HampSwe/natural-language-identifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

natural-language-identifier

This is a bot that asks the user for a word (or a sentence), and then replies with wether that word/sentence sounds more English or Swedish. The bot gives sarcastical answers, and the level of sarcasm depends on how certain the bot is of its answer.


The project was created with TensorFlow using a FFN neural network.

The network has 1 layer consisting of 4096 nodes, and uses the optimizer "RMSprop" and the loss-function "sparse_categorical_crossentropy". It was trained on a data set consisting of 80 000 words for 10 epochs. It achieved 95% accuracy on a different dataset used for testing.

In the future, I will also implement a LSTM neural network. I will also add support for more languages than just Swedish and English.

About

A program that can identify wether a piece of text is written in Swedish or English.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published