+2. Run `tweet_generator.py` to replace tweets with fake usernames and texts. The fake usernames are generated by the helper function `name_generator.py`, and the fake texts are generated using the trained model. The script generates the tweets and writes them into another json file in batches of size `k`, which is specified by the user. It takes three parameters: `-i` -- the json file storing the original tweets (e.g. `tweets.json`), `-o` -- the json file to store the fake tweets (e.g. `fake_tweets.json`), and `-k` -- the batch size to generate. An example is `python3 text_generator.py -i tweets.json -o fake_tweets.json -k 12000`. Please use `python3 text_generator.py --help` for a detailed description of the script and its parameters.
0 commit comments