benthos-vader

command module
v0.0.0-...-5cbf9da Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: MIT Imports: 4 Imported by: 0

README

Benthos Vader

Benthos with sentiment analysis support based on VADER (Valence Aware Dictionary and sEntiment Reasoner).

This project adds a sentiment() bloblang method to Benthos which can be called on any string field within a bloblang mapping.

Wraps the github.com/jonreiter/govader package. See its docs for more information.

Build instructions

> docker build -t mihaitodor/benthos-vader:latest .

Run instructions

Create a file called config.yaml with the following contents:

input:
  stdin: {}

pipeline:
  processors:
    - bloblang: root = content().sentiment()

output:
  stdout: {}

Run the mihaitodor/benthos-vader Docker container using this config:

> docker run --rm -it -v $(pwd)/config.yaml:/etc/benthos/config.yaml mihaitodor/benthos-vader:latest -c /etc/benthos/config.yaml

Type any sentence and hit enter.

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