-Goal- Given a text document that is potentially relevant to this activity and a list of entity types, identify all entities of those types from the text and all relationships among the identified entities. -Steps- 1. Identify all entities. For each identified entity, extract the following information: - entity_name: Name of the entity, capitalized - entity_type: One of the following types: [{entity_types}] Suggested types include: EMOTION, ABSTRACT_CONCEPT, AGE_STATUS, ACTOR_TYPE, AGENCY, POWER_STATE - entity_description: Description of the entity's emotional tone, social meaning, or conceptual role Format each entity as ("entity"{tuple_delimiter}{tuple_delimiter}{tuple_delimiter}) 2. From the entities identified in step 1, identify all pairs of (source_entity, target_entity) that are *clearly related* to each other. For each pair of related entities, extract the following information: - source_entity: name of the source entity, as identified in step 1 - target_entity: name of the target entity, as identified in step 1 - relationship_description: explanation as to why you think the source entity and the target entity are related to each other - relationship_strength: a numeric score indicating strength of the relationship between the source entity and target entity Format each relationship as ("relationship"{tuple_delimiter}{tuple_delimiter}{tuple_delimiter}{tuple_delimiter}) 3. Return output in English as a single list of all the entities and relationships identified in steps 1 and 2. Use **{record_delimiter}** as the list delimiter. 4. When finished, output {completion_delimiter} ###################### -Examples- ###################### Example: Extracting emotions and abstract concepts Entity_types: EMOTION, ABSTRACT_CONCEPT Text: As she stood on the quiet hill, a deep sadness washed over her. But in that solitude, she also found freedom and a renewed sense of purpose. Output: ("entity"{tuple_delimiter}SADNESS{tuple_delimiter}EMOTION{tuple_delimiter}A feeling of sorrow or grief experienced by the subject on the hill) {record_delimiter} ("entity"{tuple_delimiter}FREEDOM{tuple_delimiter}ABSTRACT_CONCEPT{tuple_delimiter}The state of being free, experienced during solitude) {record_delimiter} ("entity"{tuple_delimiter}PURPOSE{tuple_delimiter}ABSTRACT_CONCEPT{tuple_delimiter}A renewed sense of direction or meaning found in a quiet moment) {record_delimiter} ("relationship"{tuple_delimiter}SADNESS{tuple_delimiter}FREEDOM{tuple_delimiter}The subject experienced both sadness and freedom in sequence{tuple_delimiter}4) {record_delimiter} ("relationship"{tuple_delimiter}FREEDOM{tuple_delimiter}PURPOSE{tuple_delimiter}Freedom led to a feeling of renewed purpose in the subject{tuple_delimiter}6) {completion_delimiter} ###################### Example: Extracting social/psychological concepts Entity_types: EMOTION, ABSTRACT_CONCEPT, AGE_STATUS, ACTOR_TYPE, AGENCY, POWER_STATE Text: 他雖然已經成年,卻仍覺得自己在校園中毫無權力。周遭的人冷漠以對,他也不再熱衷參與任何活動,只剩無力與孤單。 Output: ("entity"{tuple_delimiter}成年{tuple_delimiter}AGE_STATUS{tuple_delimiter}法律或社會定義上已具備行為能力的年齡狀態) {record_delimiter} ("entity"{tuple_delimiter}校園{tuple_delimiter}ACTOR_TYPE{tuple_delimiter}指涉學校體制與其環境作為一種社會角色場域) {record_delimiter} ("entity"{tuple_delimiter}權力{tuple_delimiter}POWER_STATE{tuple_delimiter}主角認為自己在校園中缺乏影響他人的掌控力) {record_delimiter} ("entity"{tuple_delimiter}冷漠{tuple_delimiter}EMOTION{tuple_delimiter}他人對主角情感上的漠視與缺乏關心) {record_delimiter} ("entity"{tuple_delimiter}熱衷{tuple_delimiter}EMOTION{tuple_delimiter}主角過去對活動的積極情緒,但現已喪失) {record_delimiter} ("entity"{tuple_delimiter}無力{tuple_delimiter}POWER_STATE{tuple_delimiter}主角覺得自己無法改變現況的心理狀態) {record_delimiter} ("relationship"{tuple_delimiter}成年{tuple_delimiter}校園{tuple_delimiter}雖為成年,但在校園中仍然感受到無力{tuple_delimiter}5) {record_delimiter} ("relationship"{tuple_delimiter}冷漠{tuple_delimiter}無力{tuple_delimiter}他人的冷漠強化了主角的無力感{tuple_delimiter}7) {completion_delimiter} ###################### -Real Data- ###################### Entity_types: {entity_types} Text: {input_text} ###################### Output: