Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
ollie283
/
language-models
Public
Notifications
You must be signed in to change notification settings
Fork
41
Star
85
Code
Issues
1
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Commits
Branch selector
master
User selector
All users
Datepicker
All time
Commit history
Commits on Dec 20, 2016
added print statement to print the bigram perplexity on the actual data set file 'test.txt'. This completes the project :)
Oliver Holland
committed
391cc8b
View commit details
Copy full SHA for 391cc8b
Browse repository at this point
added print statement to print the unigram perplexity on the actual data set file 'test.txt'
Oliver Holland
committed
024716c
View commit details
Copy full SHA for 024716c
Browse repository at this point
added print statement to print the bigram perplexity on the actual data set file 'train.txt'
Oliver Holland
committed
00646d1
View commit details
Copy full SHA for 00646d1
Browse repository at this point
added print statement to print the unigram perplexity on the actual data set file 'train.txt'
Oliver Holland
committed
394cfa9
View commit details
Copy full SHA for 394cfa9
Browse repository at this point
added function to calculate bigram perplexity on test data along with appropriate print call
Oliver Holland
committed
dd90e6c
View commit details
Copy full SHA for dd90e6c
Browse repository at this point
moved calulate number of unigrams and bigrams out of their resepective classes. Created a new function that calulates the perplexity for unigram. Added necessary print statement in main.
Oliver Holland
committed
54bb623
View commit details
Copy full SHA for 54bb623
Browse repository at this point
created a function to calculate bigram sentence probabilities and added the appropriate methods to print so it formats nicely.
Oliver Holland
committed
ad4a117
View commit details
Copy full SHA for ad4a117
Browse repository at this point
in main, added the necessary functionality to print the unigram sentence proababilities. calculations can be confirmed to be correct
Oliver Holland
committed
1621c2f
View commit details
Copy full SHA for 1621c2f
Browse repository at this point
added a definition to calculate the sentence probability for unigrams
Oliver Holland
committed
725be19
View commit details
Copy full SHA for 725be19
Browse repository at this point
Commits on Nov 29, 2016
added a print bigram probabilities function and called it in main. Formatted print so it displays in the said format
Oliver Holland
committed
dc794d0
View commit details
Copy full SHA for dc794d0
Browse repository at this point
created a new def to calculate the number of bigrams based on the sentences and returned its count. Created another def to calculate the bigram probability.
Oliver Holland
committed
09e2b5d
View commit details
Copy full SHA for 09e2b5d
Browse repository at this point
Created a new class for the Bigram Language Model. Similar to the the unigram model class, however need to take into account the previous word.
Oliver Holland
committed
cb97edd
View commit details
Copy full SHA for cb97edd
Browse repository at this point
added smoothed probabilites in main
Oliver Holland
committed
cb8dd20
View commit details
Copy full SHA for cb8dd20
Browse repository at this point
Created a definiton that sorts the vocab file and appends to list with associated keys. Created a def that prints the unigram probs checking tomake sure the start and end sentence symbols are not t…
Show description for 21e16f0
Oliver Holland
committed
21e16f0
View commit details
Copy full SHA for 21e16f0
Browse repository at this point
Created a def to calculate unigram probability. Changed hard coded file path to be called in function later in main.
Oliver Holland
committed
9623a33
View commit details
Copy full SHA for 9623a33
Browse repository at this point
created UnigramLanguageModel class. Created a def to calculate number of unigrams (number of tokens in corpus)
Oliver Holland
committed
edf33b8
View commit details
Copy full SHA for edf33b8
Browse repository at this point
created a defintion that reads sentences from sampledata.txt and splits them by new line
Oliver Holland
committed
fb34487
View commit details
Copy full SHA for fb34487
Browse repository at this point
added data sets (txt files) and created a python file
Oliver Holland
committed
1936397
View commit details
Copy full SHA for 1936397
Browse repository at this point
Update README.md
Oliver Holland
committed
8c2c527
View commit details
Copy full SHA for 8c2c527
Browse repository at this point
Update README.md
Oliver Holland
committed
378cf43
View commit details
Copy full SHA for 378cf43
Browse repository at this point
Update README.md for better presentation and structure
Oliver Holland
committed
0e48ec0
View commit details
Copy full SHA for 0e48ec0
Browse repository at this point
Add new file
Oliver Holland
committed
0d4b2c1
View commit details
Copy full SHA for 0d4b2c1
Browse repository at this point
You can’t perform that action at this time.