Skip to content

mihaitodor/benthos-vader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Benthos with sentiment analysis support

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published