Safe Local Human

This is an agent which takes input from the command line in the act function, and applies a safety classifier to process the messages. It is used in the safe interactive script.

Basic Examples

Interact with a Poly-encoder model:

python parlai/scripts/safe_interactive.py -mf zoo:pretrained_transformers/model_poly/model -t convai2

LocalHumanAgent Options

Local Human Arguments

Argument

Description

-fixedCands, --local-human-candidates-file

File of label_candidates to send to other agent

--single-turn

If on, assumes single turn episodes.

Default: False.

SafeLocalHumanAgent Options

Safe Local Human Arguments

Argument

Description

--safety

Apply safety filtering to messages

Choices: all, none, string_matcher, classifier.

Default: all.

Local Human Arguments

Argument

Description

-fixedCands, --local-human-candidates-file

File of label_candidates to send to other agent

--single-turn

If on, assumes single turn episodes.

Default: False.