lexgen

command
v0.0.0-...-05004e4 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: Apache-2.0, Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

lexgen converts Chen-Skiena sentiment lexicon text files into an embedded Go source file.

Usage:

go run tools/lexgen/lexgen.go \
  -pos /tmp/pos_clean.txt \
  -neg /tmp/neg_clean.txt \
  -o pkg/analyzers/sentiment/lexicons/lexicon_data.gen.go

The input files use the format: "word lang_code\n" (one per line). Positive words receive valence +1.5, negative words receive -1.5.

Jump to

Keyboard shortcuts

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