|
FP Perception 0.1.2
|
This page documents the sentiment analysis plugin in fp_perception_driver_sentiment.
Class: fp_perception::SentimentDriver (REST-based sentiment inference)
sentiment_request via analyze().inputs: <text>).(label, score) in sentiment_result.driver.sentiment.SentimentDriver.name (string)REST base parameters:
driver.sentiment.SentimentDriver.rest.uridriver.sentiment.SentimentDriver.rest.methoddriver.sentiment.SentimentDriver.rest.ssl_verifydriver.sentiment.SentimentDriver.rest.auth_typeEnvironment:
HUGGINGFACE_API_KEY to be set.fp_perception_msgs/srv/PerceptionSentiment.use_device_audio=true, the server transcribes device audio first and then runs sentiment on the transcription.use_diagnostics=true, the driver publishes request health on /diagnostics via diagnostic_updater.