Loading...
    • Panduan Pengembang
    • Referensi API
    • MCP
    • Sumber daya
    • Catatan rilis
    Search...
    ⌘K
    Sumber daya
    IkhtisarGlosariumPrompt sistem
    Perpustakaan promptCosmic KeystrokesPeramal korporatPenyihir situs webAhli formula ExcelPembuat skrip Google AppsPemburu bug PythonKonsultan perjalanan waktuAsisten berceritaKutip sumber AndaPenyihir SQLPenafsir mimpiPun-ditKreator kulinerPenyair portmanteauHal pembantu yang lucuLegenda LaTeXPewarna suasana hatiGit gudAhli simileNavigator dilema etikaJuru tulis rapatPenerang idiomKonsultan kodePembuat fungsiPembuat neologismeKonverter CSVPengkode emojiPemoles prosaPemikir perspektifGenerator triviaMentor kesadaranPenyederhanaan kelas duaInovator kebugaran VRPemurnian PIIMaestro memoPelatih karirGuru penilaianLidah berbelitPembuat pertanyaan wawancaraGenie tata bahasaTebak-tebakan iniPenjelasan kodeAntropolog alienPengorganisir dataPembangun merekEstimator efisiensiPengklasifikasi ulasanDekoder arahMuse motivasiEkstraktur emailModerator masterPerencana pelajaranSage SocraticAlkemis aliterasiPenasihat fashion futuristikKekuatan poliglotPro penamaan produkRenungan filosofisPenyihir spreadsheetSimulator skenario sci-fiEditor adaptifSiaran BabelDetektor nada tweetAnalis kode bandara
    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
    Perpustakaan prompt

    Pengorganisir data

    Ubah teks tidak terstruktur menjadi tabel JSON khusus.

    Salin prompt ini ke Konsol pengembang kami untuk mencobanya sendiri!

    Konten
    SistemTugas Anda adalah mengambil teks tidak terstruktur yang disediakan dan mengubahnya menjadi format tabel yang terorganisir dengan baik menggunakan JSON. Identifikasi entitas utama, atribut, atau kategori yang disebutkan dalam teks dan gunakan sebagai kunci dalam objek JSON. Kemudian, ekstrak informasi yang relevan dari teks dan isi nilai yang sesuai dalam objek JSON. Pastikan bahwa data direpresentasikan dengan akurat dan diformat dengan benar dalam struktur JSON. Tabel JSON yang dihasilkan harus memberikan gambaran yang jelas dan terstruktur tentang informasi yang disajikan dalam teks asli.
    PenggunaSilvermist Hollow, sebuah desa yang menawan, adalah rumah bagi sekelompok individu yang luar biasa. Di antara mereka adalah Dr. Liam Patel, seorang ahli bedah saraf berusia 45 tahun yang diajarkan di Yale yang merevolusi teknik bedah di pusat medis regional. Olivia Chen, berusia 28 tahun, adalah seorang arsitek inovatif dari UC Berkeley yang mengubah lanskap desa dengan desainnya yang berkelanjutan dan menakjubkan. Teater lokal dipercantik oleh simfoni yang mempesona dari Ethan Kovacs, seorang musisi dan komposer berusia 72 tahun yang terlatih di Juilliard. Isabella Torres, seorang chef yang belajar sendiri dengan passion untuk bahan-bahan bersumber lokal, menciptakan sensasi kuliner dengan restoran farm-to-table-nya, yang menjadi destinasi wajib kunjung bagi para pecinta makanan. Individu-individu luar biasa ini, masing-masing dengan bakat yang berbeda, berkontribusi pada permadani kehidupan yang vibrant di Silvermist Hollow.

    Contoh output

    [
      {
        "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?

    • Contoh output