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

    Organizador de dados

    Transforme texto não estruturado em tabelas JSON personalizadas.

    Copie este prompt em nosso Console de desenvolvedor para experimentar você mesmo!

    Conteúdo
    SistemaSua tarefa é pegar o texto não estruturado fornecido e convertê-lo em um formato de tabela bem organizado usando JSON. Identifique as principais entidades, atributos ou categorias mencionadas no texto e use-as como chaves no objeto JSON. Em seguida, extraia as informações relevantes do texto e preencha os valores correspondentes no objeto JSON. Certifique-se de que os dados sejam representados com precisão e formatados corretamente dentro da estrutura JSON. A tabela JSON resultante deve fornecer uma visão geral clara e estruturada das informações apresentadas no texto original.
    UsuárioSilvermist Hollow, uma aldeia encantadora, era o lar de um grupo extraordinário de indivíduos. Entre eles estava Dr. Liam Patel, um neurocirurgião de 45 anos treinado em Yale que revolucionou técnicas cirúrgicas no centro médico regional. Olivia Chen, aos 28 anos, era uma arquiteta inovadora da UC Berkeley que transformou a paisagem da aldeia com seus designs sustentáveis e de tirar o fôlego. O teatro local foi agraciado pelas sinfonias encantadoras de Ethan Kovacs, um músico e compositor de 72 anos treinado em Juilliard. Isabella Torres, uma chef autodidata com paixão por ingredientes de origem local, criou uma sensação culinária com seu restaurante farm-to-table, que se tornou um destino imprescindível para amantes de comida. Esses indivíduos notáveis, cada um com seus talentos distintos, contribuíram para a tapeçaria vibrante da vida em Silvermist Hollow.

    Exemplo de saída

    [
      {
        "name": "Dr. Liam Patel",
        "age": 45,
        "profession": "Neurosurgeon",
        "education": "Yale",
        "accomplishments": "Revolutionized surgical techniques at the regional medical center"
      },
      {
        "name": "Olivia Chen",
        "age": 28,
        "profession": "Architect",
        "education": "UC Berkeley",
        "accomplishments": "Transformed the village's landscape with sustainable and breathtaking designs"
      },
      {
        "name": "Ethan Kovacs",
        "age": 72,
        "profession": "Musician and Composer",
        "education": "Juilliard",
        "accomplishments": "Graced the local theater with enchanting symphonies"
      },
      {
        "name": "Isabella Torres",
        "age": null,
        "profession": "Chef",
        "education": "Self-taught",
        "accomplishments": "Created a culinary sensation with her farm-to-table restaurant, which became a must-visit destination for food lovers"
      }
    ]

    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 take the unstructured text provided and convert it into a well-organized table format using JSON. Identify the main entities, attributes, or categories mentioned in the text and use them as keys in the JSON object. Then, extract the relevant information from the text and populate the corresponding values in the JSON object. Ensure that the data is accurately represented and properly formatted within the JSON structure. The resulting JSON table should provide a clear, structured overview of the information presented in the original text.",
        messages=[
            {
                "role": "user",
                "content": [
                    {
                        "type": "text",
                        "text": "Silvermist Hollow, a charming village, was home to an extraordinary group of individuals. Among them was Dr. Liam Patel, a 45-year-old Yale-taught neurosurgeon who revolutionized surgical techniques at the regional medical center. Olivia Chen, at 28, was an innovative architect from UC Berkeley who transformed the village's landscape with her sustainable and breathtaking designs. The local theater was graced by the enchanting symphonies of Ethan Kovacs, a 72-year-old Juilliard-trained musician and composer. Isabella Torres, a self-taught chef with a passion for locally sourced ingredients, created a culinary sensation with her farm-to-table restaurant, which became a must-visit destination for food lovers. These remarkable individuals, each with their distinct talents, contributed to the vibrant tapestry of life in Silvermist Hollow."
                    }
                ]
            }
        ]
    )
    print(message.content)
    

    Was this page helpful?

    • Exemplo de saída