NegaWordFixer

command module
v0.0.0-...-e5b090c Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2022 License: AGPL-3.0 Imports: 12 Imported by: 0

README

NegaWordFixer

This tool given in input a language lang, the path where negapedia.tar.gz are stored (it considers just the latest), performs the broken words replacement in the JS variables named: Word2TFIDF, BWord2Occur, Word2Occur.

Available Languages

The available languages are:

  • it
  • de
  • es
  • fr
  • en

Docker Run

For running the tool on docker:

$ docker pull negapedia/negawordfixer

$ docker run -v PATH_TO_NEGAPEDIA/LANG:/out negapedia/negawordfixer --lang LANG --file "specific_file_to_process.tar.gz" --out "output_file_name.tar.gz"

Flags:

  • lang: the language of processed Negapedia;
  • dict: the explicit path to dictionary for building the Trie. If not specified is automatically determined through the language specified;
    IMPORTANT: the path of an external path must be in the same directory of the file to process, due to the directory binding of Docker.
  • out: the explicit definition of the output filename. If not specified is set like "fixed-"<orginal_file_name.tar.gz>;
  • verbose: if true, print on screen all words replacement.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
src

Jump to

Keyboard shortcuts

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