Coder Social home page Coder Social logo

trigrams's People

Contributors

oyvindeide avatar

Watchers

 avatar

trigrams's Issues

[Review] Bug hunt

There are some short comings in the current code, try to identify it, and create a good descriptive issue:

  • Describe the problem
  • Minimal example to reproduce
  • Fix if time

[HELP!] Accidentally encrypted file

Hi, I accidentally encrypted my book and lost the key, so cant fit it in my library as I am not able to tell which book it is, nor read it! I have heard trigrams can be used in language heuristics?

I am using a simple substitution encryption, my encryption algorithm is:

def encrypt(plain_text, key):
    alphabet = 'abcdefghijklmnopqrstuvwxyz'
    translation = str.maketrans(alphabet, key)
    return plain_text.translate(translation)

Can you help me figure out which book it is?

I have attached the encrypted file below:

cipther_text.txt

I have heard https://www.gutenberg.org/ is a good source for lots of text.

Write plausible output text based on word triagram

The program is able to take an input text and create a trigram map. It should be possible to use that to output some (gibberish), but semi-plausible text.

The procedure is something like this: choose an arbitrary word pair (from the trigram map) as a starting point. Use these to look up a random next word (using the trigram map) and append this new word to the text so far. This now gives you a new word pair at the end of the text, so look up a potential next word based on these. Add this to the list, and so on.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.