<|file_name|>processors.py<|end_file_name|><｜fim▁begin｜>try:
    from calais import Calais
except ImportError:  # pragma: no cover
    Calais = None  # NOQA


if Calais is not None:
    def <|fim_middle|>(content, key):
        calais = Calais(key)
        response = calais.analyze(content)

        people = [entity["name"] for entity in getattr(response, "entities", []) if entity["_type"] == "Person"]

        return {"people": people}
<｜fim▁end｜>
process_calais