Untitled
unknown
plain_text
2 years ago
5.4 kB
6
Indexable
API_ENDPOINT="us-central1-aiplatform.googleapis.com" PROJECT_ID="greenhat23mun-8079" MODEL_ID="text-bison@001" curl \ -X POST \ -H "Authorization: Bearer $(gcloud auth print-access-token)" \ -H "Content-Type: application/json" \ "https://${API_ENDPOINT}/v1/projects/${PROJECT_ID}/locations/us-central1/publishers/google/models/${MODEL_ID}:predict" -d \ $'{ "instances": [ { "content": "Please, transform the text into a non-binary version. Change gender-specific information, and pronouns to non-binary versions. Also, replace any private names with the placeholder \\"X\\". If there are more than 1 private person, make them \\"X1\\", \\"X2\\", etc. succesively. Give the answer in the JSON format, give the original text and non-binary text. Also, provide the private names that are replaced with \\"X\\" or \\"X*\\" in a separate list. That means that the \\"names\\" key contains a list of the names that were replaced in the transformation. Text: Catharina wants to go to the gym. She wants to go there by bus. She met with John on the way. Also, she talked with her son before going there and said that her son needed to go to visit his grandparents. Text Answer: { \\"original\\": \\"Catharina wants to go to the gym. She wants to go there by bus. She met with John on the way. Also, she talked with her son before going there and said that her son needed to go to visit his grandparents. Then, Catharina finally arrived at the gym. \\", \\"non-binary\\": \\"X wants to go to the gym. They want to go there by bus. They met with X1 on the way. Also, they talked with their child before going there and said that their child needed to go to visit their grandparents. \\", \\"names\\": [\\"Catharina\\", \\"John\\"] } Text: Ayse wants to be a doctor. She is the most successful student in her class. Therefore, her parents want her to go to Stanford College. However, she wants to go to New York. Her brother is also one of the most successful high school students but wants to choose a career in the military. He wants to go to war and save his country from threads. Text Answer: { \\"original\\": \\"Ayse wants to be a doctor. She is the most successful student in her class. Therefore, her parents want her to go to Stanford College. However, she wants to go to New York. Her brother is also one of the most successful high school students but wants to choose a career in the military. He wants to go to war and save his country from threads.\\", \\"non-binary\\": \\"X wants to be a doctor. They are the most successful student in their class. Therefore, their parents want them to go to Stanford College. However, they want to go to New York. Their sibling is also one of the most successful high school students but wants to choose a career in the military. They want to go to war and save their country from threats.\\", \\"names\\": [\\"Ayse\\"] } Text: Maria enjoys painting during her free time. Her best friend, Tom, thinks she has a natural talent. Tom introduced her to his art teacher, Mr. Roberts, who believes Maria can become a professional artist. Text Answer: { \\"original\\": \\"Maria enjoys painting during her free time. Her best friend, Tom, thinks she has a natural talent. Tom introduced her to his art teacher, Mr. Roberts, who believes Maria can become a professional artist.\\", \\"non-binary\\": \\"X enjoys painting during their free time. Their best friend, X1, thinks they have a natural talent. X1 introduced them to their art teacher, X2, who believes X can become a professional artist.\\", \\"names\\": [\\"Maria\\", \\"Tom\\", \\"Mr. Roberts\\"] } Text: Jack and Jill went up the hill to fetch a pail of water. Jack fell down and broke his crown, and Jill came tumbling after. Text Answer: { \\"original\\": \\"Jack and Jill went up the hill to fetch a pail of water. Jack fell down and broke his crown, and Jill came tumbling after.\\", \\"non-binary\\": \\"X and X1 went up the hill to fetch a pail of water. X fell down and broke their crown, and X1 came tumbling after.\\", \\"names\\": [\\"Jack\\", \\"Jill\\"] } Text: Emma and Ethan are twins. Emma is passionate about astronomy, while Ethan loves marine biology. Emma often gazes at stars using her telescope, and Ethan dives deep into the ocean to study marine life. Text Answer: { \\"original\\": \\"Emma and Ethan are twins. Emma is passionate about astronomy, while Ethan loves marine biology. Emma often gazes at stars using her telescope, and Ethan dives deep into the ocean to study marine life.\\", \\"non-binary\\": \\"X and X1 are twins. X is passionate about astronomy, while X1 loves marine biology. X often gazes at stars using their telescope, and X1 dives deep into the ocean to study marine life.\\", \\"names\\": [\\"Emma\\", \\"Ethan\\"] } Text: Robert is aiming to become an engineer. He has always loved tinkering with machines. His dream is to get into MIT. His girlfriend, Lucy, supports him in every decision. Lucy wants to become a lawyer, and she has been accepted into Harvard. Her mother and her father, who are Laura and Alex, support Lucy in every decision she makes. Text Answer: " } ], "parameters": { "candidateCount": 1, "maxOutputTokens": 256, "temperature": 0.2, "topP": 0.8, "topK": 40 } }'
Editor is loading...