Loading...
    • 开发者指南
    • API 参考
    • MCP
    • 资源
    • 发布说明
    Search...
    ⌘K

    资源

    overview术语表系统提示词

    用例

    概述工单路由客户支持代理内容审核法律文件摘要

    提示库

    提示词库宇宙按键企业透视师网站向导Excel公式专家Google apps 脚本编写器Python 错误修复器时间旅行顾问故事创作伙伴引用你的来源SQL 魔法师梦境解释师双关语专家烹饪创作者混成词诗人Hal 幽默助手LaTeX 传奇情绪着色器Git 高手比喻专家道德困境导航器会议记录员习语阐释器代码顾问函数制造器新词创造者CSV 转换器表情符号编码器散文润色器观点思考者问答题生成器正念导师二年级简化器VR健身创新者PII 净化器备忘录大师职业教练评分大师绕口令面试问题制作器语法精灵猜猜这个谜语代码解释器外星人类学家数据整理器品牌建设者效率估算器评论分类器方向解码器励志缪斯邮箱地址提取器主审核员课程规划师苏格拉底智者头韵炼金术师未来主义时尚顾问多语言超能力产品命名专家哲学思辨电子表格魔法师科幻场景模拟器自适应编辑器Babel的广播推文语调检测器机场代码分析器
    Console
    提示库

    数据整理器

    将非结构化文本转换为定制的JSON表格。

    将此提示复制到我们的开发者控制台中亲自试用!

    内容
    System您的任务是将提供的非结构化文本转换为使用JSON的良好组织的表格格式。识别文本中提到的主要实体、属性或类别,并将它们用作JSON对象中的键。然后,从文本中提取相关信息并填充JSON对象中的相应值。确保数据在JSON结构中准确表示和正确格式化。生成的JSON表格应该提供原始文本中呈现信息的清晰、结构化概览。
    UserSilvermist Hollow,一个迷人的村庄,是一群非凡个体的家园。其中有Liam Patel博士,一位45岁的耶鲁大学培养的神经外科医生,他在地区医疗中心革新了手术技术。Olivia Chen,28岁,是一位来自加州大学伯克利分校的创新建筑师,她用可持续和令人惊叹的设计改变了村庄的景观。当地剧院因Ethan Kovacs的迷人交响乐而增色,他是一位72岁的茱莉亚音乐学院培养的音乐家和作曲家。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-sonnet-4-5",
        max_tokens=1000,
        temperature=0,
        system="您的任务是将提供的非结构化文本转换为使用JSON的良好组织的表格格式。识别文本中提到的主要实体、属性或类别,并将它们用作JSON对象中的键。然后,从文本中提取相关信息并填充JSON对象中的相应值。确保数据在JSON结构中准确表示和正确格式化。生成的JSON表格应该提供原始文本中呈现信息的清晰、结构化概览。",
        messages=[
            {
                "role": "user",
                "content": [
                    {
                        "type": "text",
                        "text": "Silvermist Hollow,一个迷人的村庄,是一群非凡个体的家园。其中有Liam Patel博士,一位45岁的耶鲁大学培养的神经外科医生,他在地区医疗中心革新了手术技术。Olivia Chen,28岁,是一位来自加州大学伯克利分校的创新建筑师,她用可持续和令人惊叹的设计改变了村庄的景观。当地剧院因Ethan Kovacs的迷人交响乐而增色,他是一位72岁的茱莉亚音乐学院培养的音乐家和作曲家。Isabella Torres,一位自学成才的厨师,对本地采购食材充满热情,她用农场到餐桌的餐厅创造了烹饪轰动,成为美食爱好者必访的目的地。这些杰出的个体,每个人都有自己独特的才能,为Silvermist Hollow充满活力的生活画卷做出了贡献。"
                    }
                ]
            }
        ]
    )
    print(message.content)
    
      © 2025 ANTHROPIC PBC

      Products

      • Claude
      • Claude Code
      • Max plan
      • Team plan
      • Enterprise plan
      • Download app
      • Pricing
      • Log in

      Features

      • Claude and Slack
      • Claude in Excel

      Models

      • Opus
      • Sonnet
      • Haiku

      Solutions

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

      Claude Developer Platform

      • Overview
      • Developer docs
      • Pricing
      • Amazon Bedrock
      • Google Cloud’s Vertex AI
      • Console login

      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

      Help and security

      • Availability
      • Status
      • Support center

      Terms and policies

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

      Products

      • Claude
      • Claude Code
      • Max plan
      • Team plan
      • Enterprise plan
      • Download app
      • Pricing
      • Log in

      Features

      • Claude and Slack
      • Claude in Excel

      Models

      • Opus
      • Sonnet
      • Haiku

      Solutions

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

      Claude Developer Platform

      • Overview
      • Developer docs
      • Pricing
      • Amazon Bedrock
      • Google Cloud’s Vertex AI
      • Console login

      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

      Help and security

      • Availability
      • Status
      • Support center

      Terms and policies

      • Privacy policy
      • Responsible disclosure policy
      • Terms of service: Commercial
      • Terms of service: Consumer
      • Usage policy
      © 2025 ANTHROPIC PBC