Welcome to the whimsical world of word creation! If you’ve ever felt the urge to invent your own dictionary filled with creative, made-up terms and their definitions, you’re in the right spot. This blog will guide you on how to use the “This Word Does Not Exist” project, a brilliant initiative allowing you to train a version of GPT-2 to fabricate words, definitions, and examples from scratch. Let’s dive into how you can generate your own unique vocabulary!
Generating Words
To get started with generating words, you need to follow several steps. It’s like embarking on a culinary adventure where you’ll create new flavors (words) from basic ingredients (your code). Imagine each word you generate as a unique recipe, crafted to tickle the fancy of language lovers everywhere!
Setting Up Your Environment
- Make sure you have Python installed.
- Install the necessary dependencies by referring to the following link: python deps.
Utilizing the Pre-trained Models
You’ll need to utilize several pre-trained model files to generate words:
- Blacklist: blacklist.pickle.gz
- Forward Model (word – definition): forward-dictionary-model-v1.tar.gz
- Inverse Model (definition – word): inverse-dictionary-model-v1.tar.gz
Using the Word Generator
You will utilize the WordGenerator class to create words effortlessly. Here’s how this works, using an analogy of a chef preparing a gourmet dish:
- First, as a chef gathers their ingredients, you’ll initiate the word generator with necessary paths:
from title_maker_pro.word_generator import WordGenerator
word_generator = WordGenerator(
device='cpu',
forward_model_path='somepath1',
inverse_model_path='somepath2',
blacklist_path='blacklist',
quantize=False,
)
print(word_generator.generate_word())
print(word_generator.generate_definition('glooberyblipboop'))
Training a New Model
If you’re feeling a bit adventurous and want to train your own model, you’ll first need a dictionary. This part of the process resembles gathering ingredients from different sources:
- Extract from Apple dictionaries: Extract Apple Dictionary
- Or scrap definitions from Urban Dictionary: Extract Urban Dictionary
python train.py
Website Development Instructions
Finally, if you’re keen on developing a website around your word creations or settings, here’s what you need to do:
- Navigate into the website directory:
cd .website - Install the required dependencies:
pip install -r requirements.txt - Run the server:
pip install aiohttp-devtoolsfollowed byadev runserver
Troubleshooting Tips
If you run into any complications during the process, here are some troubleshooting tips:
- Ensure all paths to model files are correctly set.
- Check your environment settings to confirm all dependencies have been installed successfully.
- Verify that the dictionary you are extracting is correctly formatted and accessible.
At fxis.ai, we believe that such advancements are crucial for the future of AI, as they enable more comprehensive and effective solutions. Our team is continually exploring new methodologies to push the envelope in artificial intelligence, ensuring that our clients benefit from the latest technological innovations.

