This repository was archived by the owner on May 13, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Generator strategies
djstrong edited this page Jul 6, 2022
·
2 revisions
Generate permutations of tokens.
Language: multi
Example
[2022-06-03 13:26:14,621] Generating names for: yorknewyork
[2022-06-03 13:26:14,621] Tokenization: {('york', 'new', 'york')}
[2022-06-03 13:26:14,621] Generated suggestions: 3
[2022-06-03 13:26:14,621] Generation time (s): 0:00:00.000258
['yorknewyork', 'yorkyorknew', 'newyorkyork']
Add prefixes.
Language: english (but we can infer affixes for other languages)
Example
[2022-06-03 13:26:48,728] Generating names for: dog
[2022-06-03 13:26:48,728] Tokenization: {('dog',)}
[2022-06-03 13:26:48,728] Generated suggestions: 19
[2022-06-03 13:26:48,728] Generation time (s): 0:00:00.000273
['virtualdog', 'blockdog', 'ethdog', '0xdog', 'blockchaindog', 'bitcoindog', 'digitaldog', 'web3dog', 'bitdog', 'thedog']
Add suffixes.
Language: english (but we can infer affixes for other languages)
Example
[2022-06-03 13:27:48,522] Generating names for: dog
[2022-06-03 13:27:48,522] Tokenization: {('dog',)}
[2022-06-03 13:27:48,522] Generated suggestions: 34
[2022-06-03 13:27:48,522] Generation time (s): 0:00:00.000208
['dogglobal', 'doginsurance', 'dogcrypto', 'doghouse', 'dogwallet', 'dogblockchain', 'dogfund', 'dogchain', 'dogbank', 'dogking']
Replace tokens with synonyms.
Language: english
Example
[2022-06-03 13:28:16,139] Generating names for: dog
[2022-06-03 13:28:16,139] Tokenization: {('dog',)}
[2022-06-03 13:28:16,139] Wordnet synsets lengths: [24] gives 24
[2022-06-03 13:28:16,139] Wordnet synsets: [['dog', 'frump', 'cad', 'bounder', 'blackguard', 'hound', 'heel', 'frank', 'frankfurter', 'hotdog', 'wiener', 'wienerwurst', 'weenie', 'pawl', 'detent', 'click', 'andiron', 'firedog', 'dog-iron', 'chase', 'trail', 'tail', 'tag', 'track']]
[2022-06-03 13:28:16,139] Generated suggestions: 24
[2022-06-03 13:28:16,139] Generation time (s): 0:00:00.000562
['dog', 'frump', 'cad', 'bounder', 'blackguard', 'hound', 'heel', 'frank', 'frankfurter', 'hotdog']
Replace tokens using word2vec similarity.
Language: english/multi
Example
[2022-06-03 13:29:36,023] Generating names for: dog
[2022-06-03 13:29:36,023] Tokenization: {('dog',)}
[2022-06-03 13:29:36,104] Word2vec synsets lengths: [102] gives 102
[2022-06-03 13:29:36,104] Word2vec synsets: [['dog', 'cat', 'dogs', 'horse', 'monkey', 'pig', 'kid', 'puppy', 'bear', 'pet', 'dirty', 'fish', 'called', 'duck', 'lady', 'girl', 'mother', 'house', 'fat', 'dick', 'guy', 'little', 'grandma', 'head', 'white', 'like', 'cats', 'naked', 'child', 'dad', 'turtle', 'woman', 'boy', 'goat', 'elephant', 'look', 'kids', 'virgin', 'stripper', 'moms', 'mom', 'punch', 'chick', 'neighbor', 'wife', 'old', 'made', 'hot', 'found', 'drunk', "'m", 'cock', 'kitten', 'mouth', 'ass', 'babies', 'eye', 'side', 'wild', 'sister', 'donkey', 'she', 'body', 'mexican', 'sex', 'hands', 'rabbit', 'bomb', 'daddy', 'bell', 'tiny', 'baby', 'whore', 'pussy', 'snake', 'bird', 'brother', 'hanging', 'hook', 'frog', 'looking', 'trash', 'food', 'granny', 'hole', 'smell', 'black', 'while', 'daughter', 'room', 'inside', 'spider', 'out', 'clean', 'big', 'and', 'pops', 'monster', 'tree', 'walk']]
[2022-06-03 13:29:36,105] Generated suggestions: 102
[2022-06-03 13:29:36,105] Generation time (s): 0:00:00.081562
['dog', 'cat', 'dogs', 'horse', 'monkey', 'pig', 'kid', 'puppy', 'bear', 'pet']
Replace tokens using categories.
Language: english
Example
[2022-06-03 13:28:40,998] Generating names for: dog123
[2022-06-03 13:28:40,999] Tokenization: {('dog',)}
[2022-06-03 13:28:41,020] CategoriesGenerator synsets lengths: [36580] gives 36580
[2022-06-03 13:28:41,020] CategoriesGenerator synsets: [['dog', 'ant', 'bat', 'cat', 'cow', 'emu', 'fly', 'fox', 'pig', 'rat', 'aaa', 'aac', 'aba', 'abc', 'abe', 'abi', 'abn', 'abs', 'abt', 'abu', 'aca', 'acc', 'ace', 'ack', 'acl', 'acm', 'acp', 'acs', 'act', 'ada', 'adc', 'add', 'adj', 'adm', 'adp', 'adr', 'ads', 'adv', 'aes', 'afb', 'afc', 'aff', 'afl', 'afp', 'aft', 'age', 'ago', 'agp', 'aid', 'aim', 'air', 'aix', 'aka', 'ala', 'ale', 'ali', 'all', 'alr', 'als', 'alt', 'ama', 'amc', 'amd', 'amg', 'ami', 'amp', 'ams', 'amt', 'amy', 'ana', 'and', 'ang', 'ann', 'ans', 'any', 'aol', 'apa', 'apc', 'ape', 'api', 'apo', 'app', 'apr', 'aps', 'apt', 'arc', 'are', 'arg', 'ari', 'ark', 'arm', 'arp', 'arr', 'ars', 'art', 'asa', 'asc', 'asf', 'ash', 'asi']]
[2022-06-03 13:28:41,066] Generated suggestions: 36580
[2022-06-03 13:28:41,069] Generation time (s): 0:00:00.070117
['dog123', 'ant123', 'bat123', 'cat123', 'cow123', 'emu123', 'fly123', 'fox123', 'pig123', 'rat123']
Replace input with entities from wikipedia2vec.
Language: english