Git Product home page Git Product logo

grandpapa's Introduction

GRaNDPapA: Generator of Rad Names from Decent Paper Acronyms

Trying to publish a new machine learning model and can't write a decent title for your paper?
Are all of your titles just sequences of 10 keywords?
Jealous of the cool kids with their sweet paper names like "ALBERT" and "ELMo"?
Well look no further, GRaNDPapA will take whatever buzzwords you want in the title and make a cool Acronym out of it.

Examples:

  • GRaNDPapA: Generator of Rad Names from Decent Paper Acronyms
  • LaSAgNe Clustering: Language Space Agnostic News Clustering
  • SeAtBeLT: Sentence Attention for Bert Label Transformers
  • ReCUsAntS: Rejuvenation of Cells Using Ant Saliva

Usage:

  1. Install python 3
  2. Clone this repository
  3. install dependencies python3 -m pip install -r requirements.txt
  4. Run python3 main.py
  5. Input the set of keywords you want in your acronym

Extra parameters:

Preserve word order: If true, will only create acronyms that maintain the provided word order.
Warning: If false, pay attention to the exponential growth of the number of possible permutations for longer lists of words.

Force use of all words: If true, will ensure all words are used in the Acronym.
Warning: There is a known bug that sometimes acronyms can be generated that are missing the last word.

Non-interactive CLI mode:

It is possible to pass parameters to the program when executing it. An example is python3 main.py --ordered bert and ernie where --ordered preserves word order and bert and ernie are the keywords. See python3 main.py --help for more info.

Alternative Wordlists:

It also possible use a different wordlist by passing it at an argument in the non-interactive mode. An alternate wordlist included is a wordlist of Wikipedia taken on January 20, 2022. To use this, simply add --wordlist wiki_wordlist.txt as an argument.

Implementation details:

For efficiency, a tree is constructed to represent all the words in the English language.
Each word string will represent a path down this tree and will end in a node labeled as "final" if the word exists.
Each node keeps track of all outgoing letters that lead to possible words from that point.
When the document words are introduced, this tree is intersected with the tree of possible acronyms for those words.
At each node, only outgoing nodes that follow the rules of the Acronym generation are maintained.
Paths down this intersected tree to final nodes are words that exist in the English language and are valid acronyms for the given words.

Credits

Developed for Priberam Labs
List of all English words by dwyl
List of words from the English Wikipedia Wiki Word Frequency

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.