Loading...
    • Guia do Desenvolvedor
    • Referência da API
    • MCP
    • Recursos
    • Notas de lançamento
    Search...
    ⌘K
    Recursos
    Visão geralGlossárioPrompts do sistema
    Biblioteca de promptsCosmic KeystrokesClarividente corporativoAssistente de siteEspecialista em fórmulas ExcelProgramador de Google AppsCaçador de bugs PythonConsultor de viagem no tempoAssistente de contação de históriasCite suas fontesFeiticeiro SQLIntérprete de sonhosEspecialista em trocadilhosCriador culinárioPoeta de portmanteauHal, o assistente divertidoLenda LaTeXColoridor de humorGit gudSábio em símilesNavegador de dilemas éticosEscriba de reuniõesIluminador de idiomasConsultor de códigoFabricante de funçõesCriador de neologismosConversor CSVCodificador de emojiPolidor de prosaPonderador de perspectivasGerador de curiosidadesMentor de atenção plenaSimplificador de segundo grauInovador de fitness VRPurificador de PIIMaestro de memorandosCoach de carreiraGuru de classificaçãoTrava-línguaCriador de perguntas de entrevistaGênio da gramáticaAdivinhe-me istoEsclarecedor de códigoAntropólogo alienígenaOrganizador de dadosConstrutor de marcaEstimador de eficiênciaClassificador de avaliaçõesDecodificador de direçõesMusa motivacionalExtrator de emailModerador mestrePlanejador de aulasSábio socráticoAlquimista de aliteraçãoConselheiro de moda futuristaSuperpoderes poliglotasProfissional em nomenclatura de produtosReflexões filosóficasFeiticeiro de planilhasSimulador de cenários de ficção científicaEditor adaptativoTransmissões de BabelDetector de tom de tweetAnalista de código de aeroporto
    Console
    Log in
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...

    Solutions

    • AI agents
    • Code modernization
    • Coding
    • Customer support
    • Education
    • Financial services
    • Government
    • Life sciences

    Partners

    • Amazon Bedrock
    • Google Cloud's Vertex AI

    Learn

    • Blog
    • Catalog
    • Courses
    • Use cases
    • Connectors
    • Customer stories
    • Engineering at Anthropic
    • Events
    • Powered by Claude
    • Service partners
    • Startups program

    Company

    • Anthropic
    • Careers
    • Economic Futures
    • Research
    • News
    • Responsible Scaling Policy
    • Security and compliance
    • Transparency

    Learn

    • Blog
    • Catalog
    • Courses
    • Use cases
    • Connectors
    • Customer stories
    • Engineering at Anthropic
    • Events
    • Powered by Claude
    • Service partners
    • Startups program

    Help and security

    • Availability
    • Status
    • Support
    • Discord

    Terms and policies

    • Privacy policy
    • Responsible disclosure policy
    • Terms of service: Commercial
    • Terms of service: Consumer
    • Usage policy
    Biblioteca de prompts

    Detector de tom de tweet

    Detecte o tom e o sentimento por trás dos tweets.

    Copie este prompt para nosso Console do desenvolvedor para experimentar!

    Conteúdo
    SistemaSua tarefa é analisar o tweet fornecido e identificar o tom e o sentimento primários expressos pelo autor. O tom deve ser classificado como um dos seguintes: Positivo, Negativo, Neutro, Humorístico, Sarcástico, Entusiasmado, Furioso ou Informativo. O sentimento deve ser classificado como Positivo, Negativo ou Neutro. Forneça uma breve explicação para suas classificações, destacando as palavras-chave, frases, emoticons ou outros elementos que influenciaram sua decisão.
    UsuárioWow, I'm so impressed by the company's handling of this crisis. 🙄 They really have their priorities straight. #sarcasm #fail

    Exemplo de saída

    Tone: Sarcastic Sentiment: Negative

    Solicitação de API

    import anthropic
    
    client = anthropic.Anthropic(
        # defaults to os.environ.get("ANTHROPIC_API_KEY")
        api_key="my_api_key",
    )
    message = client.messages.create(
        model="claude-opus-4-6",
        max_tokens=1000,
        temperature=0,
        system="Your task is to analyze the provided tweet and identify the primary tone and sentiment expressed by the author. The tone should be classified as one of the following: Positive, Negative, Neutral, Humorous, Sarcastic, Enthusiastic, Angry, or Informative. The sentiment should be classified as Positive, Negative, or Neutral. Provide a brief explanation for your classifications, highlighting the key words, phrases, emoticons, or other elements that influenced your decision.",
        messages=[
            {
                "role": "user",
                "content": [
                    {
                        "type": "text",
                        "text": "Wow, I'm so impressed by the company's handling of this crisis. 🙄 They really have their priorities straight. #sarcasm #fail"
                    }
                ]
            }
        ]
    )
    print(message.content)
    

    Was this page helpful?

    • Exemplo de saída
    • Solicitação de API