Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
ZhangbuDong 350b936691 | 1 year ago | |
---|---|---|
img | 1 year ago | |
README.md | 1 year ago | |
dataset.py | 1 year ago | |
env.yml | 1 year ago | |
gen.py | 1 year ago | |
main.py | 1 year ago | |
model.py | 1 year ago |
Text generation system based on a mixed corpus of 《毛澤東語錄》(Quotations From Chairman Mao Tse-Tung) and《論語》(Confucian Analects).
Based on Transformer. Reference: PyTorch tutorial
# Create & activate conda environment
$ conda env create -f env.yml
$ conda activate chinese-text-generation
# Train & test with default params
$ python main.py data/corpus.txt output/model.pt
# Train with other settings, see help
$ python main.py -h
# Generate text for human evaluation
$ python gen.py data/corpus.txt output/model.pt
# Generate text with other settings, see help
$ python gen.py -h
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》