Skip to content
#

pyrhon

Here are 54 public repositories matching this topic...

The provided code is a language model that: Downloads several books from the Gutenberg Project website Creates different n-gram models (unigram, bigram, trigram, and quadgram) based on the words in those books Defines a function called suggest_next_word that takes a sentence as input and suggests possible words that come after the sentence...

  • Updated Apr 17, 2023
  • Jupyter Notebook

Specifically, the code: Loads all the images of handwritten 0's and 1's from a specified directory. Creates a binary matrix of size 4x4 for each image. Goes through each matrix and counts the number of times each pixel is set to True for each digit. Uses the count to calculate the probability of each pixel being True given the digit is a 0 or 1.

  • Updated Apr 17, 2023
  • Jupyter Notebook

Improve this page

Add a description, image, and links to the pyrhon topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the pyrhon topic, visit your repo's landing page and select "manage topics."

Learn more