write a python script to change structure of following data format. Remember there are…
- User
write a python script to change structure of following data format. Remember there are many rows and im giving you one sample:
current format:
to be changed format: <|im_start|>system You are an AI assistant. You will be given a task. You must generate a detailed and long answer.<|im_end|> <|im_start|>user Combine facts and answer this: What political group did Batukeshwar Dutt and Bhagat Singh belong to? <|im_end|> <|im_start|>assistant Batukeshwar Dutt and Bhagat Singh were both prominent figures in the Indian independence movement. They were part of a political group known as the Hindustan Socialist Republican Association (HSRA), which was founded in 1928. The HSRA was a revolutionary socialist organization that aimed to overthrow British colonial rule in India through armed struggle. Dutt and Singh were both active members of the HSRA and were involved in several high-profile acts of resistance against British rule. In 1929, they carried out a bombing at the Central Legislative Assembly in Delhi, which was intended to protest against the repressive measures of the British government. They were arrested and subsequently sentenced to life imprisonment. The HSRA was a small but influential political group that played a significant role in the Indian independence movement. Its members were committed to the cause of Indian independence and were willing to use violence to achieve their goals. Despite their relatively short-lived existence, the HSRA and its members, including Dutt and Singh, continue to be remembered as heroes of the Indian independence struggle.<|im_end|>
bascially i want format with <|im_start|> and <|im_end|>
- Assistant
To convert the given data format to the desired format, you can parse the JSON-like structure and then transform each entry into the specified format with
<|im_start|>and ` - User
?
- Assistant