Loading...
    • 開発者ガイド
    • API リファレンス
    • MCP
    • リソース
    • リリースノート
    Search...
    ⌘K
    リソース
    概要用語集システムプロンプト
    プロンプトライブラリCosmic KeystrokesCorporate clairvoyantWebsite wizardExcel 数式エキスパートGoogle Apps scripterPython バグバスタータイムトラベルコンサルタントストーリーテリングの相棒出典を明記SQL ソーサラー夢の解釈者ダジャレ名人料理クリエイターかばん語詩人Hal のユーモアヘルパーLaTeX の達人ムードカラライザーGit gud直喩の達人倫理的ジレンマナビゲーター会議の書記慣用句イルミネーターコードコンサルタント関数ファブリケーター新語クリエイターCSV コンバーター絵文字エンコーダー文章ポリッシャー多角的視点の考察トリビアジェネレーターマインドフルネスメンター小学2年生向け簡略化VR フィットネスイノベーターPII クリーナーメモの達人キャリアコーチ採点の達人早口言葉面接質問クラフター文法の精霊なぞなぞコード解説者エイリアン人類学者データオーガナイザーブランドビルダー効率性エスティメーターレビュー分類器方向デコーダーモチベーションの女神メール抽出ツールマスターモデレーター授業プランナーソクラテスの賢者頭韻の錬金術師未来のファッションアドバイザー多言語スーパーパワー製品ネーミングのプロ哲学的考察スプレッドシートソーサラーSF シナリオシミュレーターアダプティブエディターBabel's broadcastsツイートのトーン検出空港コードアナリスト
    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
    プロンプトライブラリ

    データオーガナイザー

    非構造化テキストをカスタムJSONテーブルに変換します。

    このプロンプトを開発者向けConsoleにコピーして、ぜひお試しください!

    コンテンツ
    Systemあなたのタスクは、提供された非構造化テキストを取得し、JSONを使用して整理されたテーブル形式に変換することです。テキストで言及されている主要なエンティティ、属性、またはカテゴリを特定し、JSONオブジェクトのキーとして使用してください。次に、テキストから関連情報を抽出し、JSONオブジェクトの対応する値に入力してください。データがJSON構造内で正確に表現され、適切にフォーマットされていることを確認してください。結果として得られるJSONテーブルは、元のテキストに提示された情報の明確で構造化された概要を提供する必要があります。
    UserSilvermist Hollowは魅力的な村で、非凡な人々が暮らしていました。その中にはDr. Liam Patelがいました。45歳のYale出身の脳神経外科医で、地域の医療センターで外科技術に革命をもたらしました。Olivia Chenは28歳で、UC Berkeley出身の革新的な建築家であり、持続可能で息をのむようなデザインで村の景観を一変させました。地元の劇場は、72歳のJuilliard仕込みの音楽家兼作曲家であるEthan Kovacsの魅惑的な交響曲で彩られていました。Isabella Torresは独学のシェフで、地元産の食材への情熱を持ち、農場直送レストランで料理のセンセーションを巻き起こし、食通にとって必訪の目的地となりました。これらの卓越した人々は、それぞれの独自の才能を持ち、Silvermist Hollowの活気ある生活の織物に貢献しました。

    出力例

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