{"id":13638669,"url":"https://github.com/turtlesoupy/this-word-does-not-exist","last_synced_at":"2025-04-12T21:36:21.794Z","repository":{"id":40466723,"uuid":"245949080","full_name":"turtlesoupy/this-word-does-not-exist","owner":"turtlesoupy","description":"This Word Does Not Exist","archived":false,"fork":false,"pushed_at":"2022-05-06T13:48:09.000Z","size":38769,"stargazers_count":1019,"open_issues_count":17,"forks_count":82,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-04T01:10:03.531Z","etag":null,"topics":["gpt-2","machine-learning","natural-language-generation","natural-language-processing","natural-language-understanding","transformers"],"latest_commit_sha":null,"homepage":"https://www.thisworddoesnotexist.com","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/turtlesoupy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-09T05:11:11.000Z","updated_at":"2025-03-22T22:32:11.000Z","dependencies_parsed_at":"2022-07-11T19:50:04.127Z","dependency_job_id":null,"html_url":"https://github.com/turtlesoupy/this-word-does-not-exist","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turtlesoupy%2Fthis-word-does-not-exist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turtlesoupy%2Fthis-word-does-not-exist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turtlesoupy%2Fthis-word-does-not-exist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turtlesoupy%2Fthis-word-does-not-exist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/turtlesoupy","download_url":"https://codeload.github.com/turtlesoupy/this-word-does-not-exist/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248637344,"owners_count":21137531,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gpt-2","machine-learning","natural-language-generation","natural-language-processing","natural-language-understanding","transformers"],"created_at":"2024-08-02T01:00:51.372Z","updated_at":"2025-04-12T21:36:21.758Z","avatar_url":"https://github.com/turtlesoupy.png","language":"Python","funding_links":[],"categories":["Other Resources","Python","Neural Natural Language Generation"],"sub_categories":["Other"],"readme":"![Word Does Not Exist Logo](website/static/twitter_card_biggest_title.png)\n\n# This Word Does Not Exist\nThis is a project allows \npeople to train a variant of GPT-2 that makes\nup words, definitions and examples from scratch. \n\nFor example\n\n\u003e **incromulentness** (noun)\n\u003e\n\u003e lack of sincerity or candor\n\u003e\n\u003e *\"incromulentness in the manner of speech\"*\n\nCheck out https://www.thisworddoesnotexist.com as a demo \n\nCheck out https://twitter.com/robo_define for a twitter bot demo\n\n## Generating Words / Running Inference\nPython deps are in https://github.com/turtlesoupy/this-word-does-not-exist/blob/master/cpu_deploy_environment.yml\n\nPre-trained model files:\n- Blacklist: https://storage.googleapis.com/this-word-does-not-exist-models/blacklist.pickle.gz\n- Forward Model (word -\u003e definition): https://storage.googleapis.com/this-word-does-not-exist-models/forward-dictionary-model-v1.tar.gz\n- Inverse model (definition -\u003e word): https://storage.googleapis.com/this-word-does-not-exist-models/inverse-dictionary-model-v1.tar.gz\n\nTo use them:\n```\nfrom title_maker_pro.word_generator import WordGenerator\nword_generator = WordGenerator(\n  device=\"cpu\",\n  forward_model_path=\"\u003csomepath1\u003e\",\n  inverse_model_path=\"\u003csomepath2\u003e\",\n  blacklist_path=\"\u003cblacklist\u003e\",\n  quantize=False,\n)\n\n# a word from scratch:\nprint(word_generator.generate_word())\n\n# definition for a word you make up\nprint(word_generator.generate_definition(\"glooberyblipboop\")) \n\n# new word made up from a definition\nprint(word_generator.generate_word_from_definition(\"a word that does not exist\")) \n```\n\n\n\n## Training a model\nFor raw thoughts, take a look at some of the notebooks in https://github.com/turtlesoupy/this-word-does-not-exist/tree/master/notebooks\n\nTo train, you'll need to find a dictionary -- there is code to extract from \n- Apple dictionaries in https://github.com/turtlesoupy/this-word-does-not-exist/blob/master/title_maker_pro/dictionary_definition.py (e.g. `/System/Library/Assets/com_apple_MobileAsset_DictionaryServices_dictionaryOSX/`). \n- Urban dictionary in https://github.com/turtlesoupy/this-word-does-not-exist/blob/master/title_maker_pro/urban_dictionary_scraper.py\n\nAfter extracting a dictionary you can use the master training script: https://github.com/turtlesoupy/this-word-does-not-exist/blob/master/title_maker_pro/train.py. A sample recent run is https://github.com/turtlesoupy/this-word-does-not-exist/blob/master/scripts/sample_run_parsed_dictionary.sh\n\n\n\n\n## Website Development Instructions\n```\ncd ./website\npip install -r requirements.txt\npip install aiohttp-devtools \nadev runserver\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturtlesoupy%2Fthis-word-does-not-exist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fturtlesoupy%2Fthis-word-does-not-exist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturtlesoupy%2Fthis-word-does-not-exist/lists"}