将非结构化文本转换为定制的 JSON 表。
提示词:
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.
您的任务是获取提供的非结构化文本,并使用 JSON 将其转换为组织良好的表格格式。识别文本中提到的主要实体、属性或类别,并将它们用作 JSON 对象中的键。然后,从文本中提取相关信息并填充 JSON 对象中的相应值。确保 JSON 结构中数据的准确表示和格式正确。生成的 JSON 表应提供原始文本中提供的信息的清晰、结构化的概述。
用户提问:
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.
银雾谷是一个迷人的村庄,是一群非凡人物的家园。其中包括 45 岁的利亚姆·帕特尔 (Liam Patel) 博士,他是一位在耶鲁大学任教的神经外科医生,彻底改变了该地区医疗中心的外科技术。 28 岁的 Olivia Chen 是加州大学伯克利分校的一位创新建筑师,她用可持续且令人惊叹的设计改变了村庄的景观。 72 岁的茱莉亚音乐学院培养的音乐家和作曲家伊桑·科瓦奇 (Ethan Kovacs) 的迷人交响乐为当地剧院增光添彩。伊莎贝拉·托雷斯 (Isabella Torres) 是一位自学成才的厨师,对当地食材充满热情,她的农场到餐桌餐厅创造了烹饪界的轰动,成为美食爱好者的必去之地。这些杰出的人物,每个人都有独特的才能,为银雾谷充满活力的生活做出了贡献。
输出样例:
[
{
“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”
}
]
[
{
“姓名”: “Dr. Liam Patel”,
“年龄”: 45,
“职业”: “神经外科医生”,
“教育背景”: “耶鲁”,
“成就”: “在地区医疗中心革新了手术技术”
},
{
“姓名”: “Olivia Chen”,
“年龄”: 28,
“职业”: “建筑师”,
“教育背景”: “加州大学伯克利分校”,
“成就”: “用可持续且令人叹为观止的设计改变了村庄的景观”
},
{
“姓名”: “Ethan Kovacs”,
“职业”: “音乐家与作曲家”,
“教育背景”: “茱莉亚学院”,
“成就”: “用迷人的交响乐给当地剧院带来了恩典”
},
{
“姓名”: “Isabella Torres”,
“年龄”: null,
“职业”: “厨师”,
“教育背景”: “自学成才”,
“成就”: “用她的田园餐桌餐厅创造了烹饪新宠,成为食客必访的目的地”
}
]
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
暂无评论内容