Loading...
    • 开发者指南
    • API 参考
    • MCP
    • 资源
    • 更新日志
    Search...
    ⌘K
    资源
    概览术语表系统提示词
    提示词库宇宙按键企业预言家网站向导Excel 公式专家Google Apps 脚本专家Python 除错大师时间旅行顾问故事创作助手引用来源SQL 魔法师解梦师双关语大师美食创作家混成词诗人幽默助手 HalLaTeX 达人情绪调色师Git 高手比喻达人伦理困境导航会议记录员习语解读者代码顾问函数生成器新词创造者CSV 转换器Emoji 编码器文章润色师多角度思考者知识问答生成器正念导师通俗化简述VR 健身创新者隐私信息净化器备忘录大师职业教练评分大师绕口令面试问题设计师语法精灵猜谜语代码解读器外星人类学家数据整理师品牌构建师效率评估器评论分类器方向解码器励志缪斯邮件提取器首席审核员课程规划师苏格拉底式智者头韵炼金师未来时尚顾问多语言超能力产品命名专家哲学沉思电子表格魔法师科幻场景模拟器自适应编辑器巴别塔广播推文语气检测器机场代码分析师
    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 表格。

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

    内容
    SystemYour 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.
    UserSilvermist 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.

    示例输出

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