Downloads · 30 days
0
sinda1/Neural_Network_Based_Language_Model_for_Next_Token_Prediction
Neural_Network_Based_Language_Model_for_Next_Token_Prediction is a machine learning model from sinda1. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Hey there! This is my cool project where I built a language model that can handle both English and Chinese. It's like teaching a computer to understand and generate text in two totally different languages!
Downloads · 30 days
0
Access
Public
Updated Oct 15, 2024
Repo size
898 MB
Likes
0
Public
Click a slice to open those files.
.pth898 MB · 100%
From the Hugging Face model README
Hey there! This is my cool project where I built a language model that can handle both English and Chinese. It's like teaching a computer to understand and generate text in two totally different languages!
BPE Tokenizer: I made a special tool called a Byte Pair Encoding (BPE) tokenizer. It's like a smart dictionary that breaks words into smaller pieces, which helps the model understand language better.
LSTM Language Model: I used something called an LSTM (Long Short-Term Memory) neural network. It's a fancy way of saying the model can remember important stuff from earlier in a sentence to help predict what comes next.
Bilingual Support: The coolest part is that this model can work with both English and Chinese! It's like having a brain that can switch between two languages.
My model achieved a perplexity score of 32.83, which is pretty good for a bilingual model! It means the model is getting better at predicting what word comes next in a sentence.
I'm thinking of trying out more advanced models like Transformers to see if I can make it even better. Also, I want to experiment with more languages - maybe add Spanish or French to the mix!
Thanks for checking out my project! Feel free to play around with it and let me know what you think. 😊