Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Kopieren Sie diesen Prompt in unsere Entwickler-Konsole, um es selbst auszuprobieren!
| Inhalt | |
|---|---|
| System | Ihre Aufgabe besteht darin, den bereitgestellten unstrukturierten Text zu nehmen und ihn in ein gut organisiertes Tabellenformat mit JSON umzuwandeln. Identifizieren Sie die Hauptentitäten, Attribute oder Kategorien, die im Text erwähnt werden, und verwenden Sie sie als Schlüssel im JSON-Objekt. Extrahieren Sie dann die relevanten Informationen aus dem Text und füllen Sie die entsprechenden Werte im JSON-Objekt aus. Stellen Sie sicher, dass die Daten genau dargestellt und ordnungsgemäß in der JSON-Struktur formatiert sind. Die resultierende JSON-Tabelle sollte einen klaren, strukturierten Überblick über die im ursprünglichen Text präsentierten Informationen bieten. |
| User | Silvermist Hollow, ein charmantes Dorf, war die Heimat einer außergewöhnlichen Gruppe von Personen. Unter ihnen war Dr. Liam Patel, ein 45-jähriger Yale-ausgebildeter Neurochirurg, der chirurgische Techniken im regionalen Medizinzentrum revolutionierte. Olivia Chen, 28 Jahre alt, war eine innovative Architektin von der UC Berkeley, die die Landschaft des Dorfes mit ihren nachhaltigen und atemberaubenden Designs umgestaltete. Das lokale Theater wurde von den bezaubernden Sinfonien von Ethan Kovacs, einem 72-jährigen Juilliard-ausgebildeten Musiker und Komponisten, bereichert. Isabella Torres, eine autodidaktische Köchin mit einer Leidenschaft für lokal bezogene Zutaten, schuf eine kulinarische Sensation mit ihrem Farm-to-Table-Restaurant, das zu einem Muss-Besuch-Ziel für Liebhaber guter Küche wurde. Diese bemerkenswerten Personen, jede mit ihren eigenen Talenten, trugen zum lebendigen Mosaik des Lebens in Silvermist Hollow bei. |
[
{
"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?