textgen

command module
v0.0.0-...-7a0dda3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2022 License: MIT Imports: 6 Imported by: 0

README

Textgen

Text generation from existing source text using weighted predictions.

Installation

go install github.com/vcokltfre/textgen@latest

Usage

To train from a corpus:

textgen train -i corpus.txt

To generate text:

textgen generate
Additional options

For the train command you can specify:

  • -i or --input to specify the input file
  • -w or --weights to specify the weights output file

For the generate command you can specify:

  • -w or --weights to specify the weights input file
  • -l or --length to specify the length of the generated text
  • -s or --start to specify the seed word for the generator

The train command accepts either a file path or an HTTP/HTTPS URL as input.

Pre-trained Weights

In the weights/ directory you can find pre-trained weights for the following corpora:

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL