erolozkan- / language-modelling Goto Github PK
View Code? Open in Web Editor NEWN-gram Language Model
N-gram Language Model
run python3 ___________ src/Runner_First.py -- Basic example with basic dataset (data/train.txt) A simple dataset with three sentences is used. Ngram models for these sentences are calculated. (Unigram, Bigram, Trigram, Add-one smoothing, good-turing smoothing) Models are tested using some unigram, bigram, trigram word units. New sentences are generated and perpexility score calculated. src/Runner_Second.py -- Real dataset Ngram models are built using Brown corpus. Brown test dataset perpexility score calculated. New sentences are generated and perpexility score calculated. src/Runner_Interpolation.py -- Real dataset - Interpolation Interplation model implemented. Different lambda values are testted on validation dataset. (using brute-force approach - manually selected) New perpexility scoring function using interpolated model is implemented. Finally, best lambda value is used for Brown test dataset. (perpexility) src/Runner_Discounting_Simple.py -- Basic example discounting Discounting method is implemented. For β = 0.5, new bigram and trigram models are calculated. New perpexility scoring using discounted models are implemented. (Bigram and Trigram)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.