项目作者: woctezuma

项目描述 :
Sample Steam descriptions with the GPT-2 language model.
高级语言: Jupyter Notebook
项目地址: git://github.com/woctezuma/sample-steam-descriptions.git
创建时间: 2019-06-01T22:12:03Z
项目社区:https://github.com/woctezuma/sample-steam-descriptions

开源协议:MIT License

下载


Sample Steam Descriptions

![Build status][build-image]
Code coverage
Code Quality

This repository contains Python code to sample Steam store descriptions, with the GPT-2 language model.

Generated description, using GPT-2

Requirements

  • Install the latest version of Python 3.X.
  • Install the required packages:
  1. pip install -r requirements.txt

Usage

Download app details, which include Steam store descriptions

Store descriptions are parsed from app details, which can be downloaded with steam_spy.py in my steam-api repository.

A data snapshot is available in my steam-api-data Github repository.

Concatenate Steam store descriptions in a large text file

  1. python export_description_data.py

A data snapshot is available in data/.

Fine-tune a pre-trained GPT-2 model

Run the gpt_2_for_descriptions.ipynb notebook on Google Colab, which relies on the gpt_2_simple package.
Open In Colab

Results

Results obtained after 5000 steps using the 117M model:

Results obtained after 1000 steps using the 345M model:

References

[build-image]:

[pyup]: https://pyup.io/repos/github/woctezuma/sample-steam-descriptions