ostapeno/flanv2_100k huggingface dataset:
user: You are given a sentence in Spanish. Your job is to translate the Spanish sentence into Japanese.

Ex Input:
Seguro que si podemos conectar a África y a los últimos 1000 millones por una cifra parecida, deberíamos hacerlo.

Ex Output:
もし私達がアフリカと「最後の10億人」とをそれ位の額で繋ぐ事ができるのならそうするべきだと思っています


Ex Input:
Todas estas razones hacen de la quimioterapia la única opción para el paciente de cáncer de páncreas.

Ex Output:
これらの理由から化学療法だけが膵臓がん患者に残された選択肢です


Ex Input:
Cuando te relacionas con el mundo, la manifestación dinámica de la unidad es lo que llamamos amor.

Ex Output:


assistant: あなたが世界と向き合うときその全体が活き活きと現れるものこそ私たちが愛と呼ぶものなのです
user: In this task, you are given two phrases: Head and Tail, separated with <sep>. The Head and the Tail events are short phrases possibly involving participants. The names of specific people have been replaced by generic words (e.g., PersonX, PersonY, PersonZ). PersonX is always the subject of the event. You have to determine whether it is plausible for the Head to desire the Tail or not. In this task, desire means desires of sentient entities. For example, doctors likely desire to cure a patient. Classify your answers into "Yes" and "No". The phrase may also contain "___", a placeholder that can be an object, a person, and/or an action.

[EX Q]: Head: PersonX asks PersonY's teacher<sep>Tail: The teacher explains breifly to PersonX
[EX A]: No

[EX Q]: Head: jockey<sep>Tail: win races
[EX A]: Yes

[EX Q]: Head: PersonX asks PersonY's teacher<sep>Tail: curious
[EX A]:

assistant: No
user: You will be given a sentence that describes a restaurant. You will also be given a few categories of information regarding that sentence. Your task is to fill each of the categories with the appropriate information from the sentenece.

Q: Sentence: I would recommend xname since it is a French restaurant with good food and accommodating service. it's in Manhattan. ; Categories: service, location, recommend

A: service[good], location[Manhattan], recommend[yes]
****
Q: Sentence: xname is the best restaurant since it is affordable and a place with adequate food. ; Categories: recommend, price, qual

A: recommend[yes], price[affordable], qual[acceptable]
****
Q: Sentence: xname is the best restaurant since it is in TriBeCa/SoHo with good food and xname is pricey with adequate service with decent ambiance. ; Categories: price, location, service

A:

assistant: price[expensive], location[TriBeCa/SoHo], service[acceptable]
****
user: Part 1. Definition
A text is given in Hindi. Translate it from the Hindi language to the Telugu language. The translation must not omit or add information to the original sentence.
Part 2. Example
ఈ పోర్ట‌ల్ ను 2019-20 ఆర్థిక సంవ‌త్స‌రానికి ఎన్‌జిఒ లు మ‌రియు రాష్ట్రాలు ఆన్‌లైన్ లో ద‌ర‌ఖాస్తులను దాఖలు చేయడం కోసం బుధ‌వారం నాడు తిరిగి తెర‌వ‌డం జ‌రిగింది
Answer: यह पोर्टल बुधवार को गैर सरकारी संगठनों में आवेदन दाखिल करने के लिए खोला गया था और 2019-20 वित्तीय वर्ष के लिए ऑनलाइन राज्य
Explanation: Correct translation for given sentence. Input sentence means 'This portal was opened on Wednesday for filing applications in NGOs and States online for 2019-20 financial year' which is the same as the output sentence.
Part 3. Exercise
ఆయుర్వేదం, యోగ‌, ప్ర‌కృతి వైద్యం, యునాని, సిద్ధ‌, సొవా-రిగ్‌పా, హోమియోపతి ల వంటి సంప్ర‌దాయ వైద్య విధానాల‌ను ప్రోత్స‌హించే బాధ్య‌త క‌లిగిన, భార‌త ప్ర‌భుత్వానికి చెందిన ఆయుష్ మంత్రిత్వ‌ శాఖ చైనా, మ‌లేశియా, ట్రినిడాడ్‌ & టొబాగో, హంగ‌రి, బాంగ్లాదేశ్‌, నేపాల్, మారిష‌స్‌, మంగోలియా వంటి దేశాల‌తో సంప్ర‌దాయ వైద్య విధాన‌ రంగంలో ప‌ర‌స్ప‌ర స‌హ‌కారానికి ఎమ్ఒయు లు కుద‌ర్చుకోవ‌డం ద్వారా త‌గిన చ‌ర్య‌లను చేప‌ట్టింది.
Answer:

assistant: इस प्रणाली में आर्युवेद, योग एवं प्राकृतिक चिकित्सा, यूनानी, सिद्ध, सोवा-रिगपा और होम्योपैथी शामिल हैं। आयुष मंत्रालय ने इस दिशा में चीन, मलेशिया, त्रिनिदाद एवं टोबेगो, हंगरी, बांग्लादेश, नेपाल, मॉरिशस और मंगोलिया के साथ पारंपरिक औषधि संबंधी समझौता-ज्ञापन किए हैं।
user: In this task, you are given a text which is the body of a document. Your job is to classify the topic of the document into these categories: 1)Company, 2)Educational Institution, 3)Artist, 4)Athlete, 5)Office Holder, 6)Mean of transportation, 7)Building, 8)Natural place, 9)Village, 10)Animal, 11)Plant, 12)Album, 13)Film, 14)Written work. Your output should be the category number. Don't generate anything apart from numbers 1-14.

Let me give you an example: Text: Abbott of Farnham E D Abbott Limited was a British coachbuilding business based in Farnham Surrey trading under that name from 1929. A major part of their output was under sub-contract to motor vehicle manufacturers. Their business closed in 1972.
The answer to this example can be: 1
Here is why: Here, the given text is about a British coachbuilding business company. Hence, it is a correct answer.

OK. solve this:
Text:  The Saab 90 Scandia was a civil passenger aeroplane manufactured by the Svenska Aeroplan Aktiebolaget (SAAB) in Linköping Sweden. In 1944 as it was becoming clear that hostilities in Europe (the Second World War) would soon be at an end SAAB realised that the company had to diversify from purely military endeavours if it were to survive.
Answer:

assistant: 6
user: A text is given in Gujarati. Translate it from the Gujarati language to the Hindi language. The translation must not omit or add information to the original sentence.
Example: देश के अलग-अलग इलाकों में जितना ज्यादा इंफ्रास्ट्रक्चर मजबूत होगा, संपर्क सुगम होगा, जितना ज्यादा ट्रांसपोर्ट के अलग-अलग माध्यम एक दूसरे को सपोर्ट करेंगे, उतना ही लोगों का जीवन आसान बनेगा, व्यापार के नए अवसर बनेंगे, रोजगार के नए अवसर बनेंगे।
Example solution: દેશના વિવિધ વિસ્તારોમાં વધુ ઇન્ફ્રાસ્ટ્રક્ચર મજબૂત બનશે, સંપર્કનો સામનો કરવો પડશે, એટલું જ નહીં, કારણ કે પરિવહનના વિવિધ માધ્યમ એકબીજાને ટેકો આપશે, લોકોનું જીવન સરળ બનશે, રોજગાર માટે નવી તકો બનશે..
Example explanation: Correct translation for given sentence. Input sentence means 'The more infrastructure will be strong in different areas of the country, the contact will be facilitated, as much as the different medium of transport will support each other, the life of the people will become easier, will become new opportunities for employment..' which is the same as the output sentence.

Problem: ये एक प्रकार से तकनीक के दर्पण हैं, जिसमें दुनिया को भविष्य नज़र आता है।


assistant: Solution: આ એક પ્રકારે ટેકનોલોજીનું દર્પણ છે, જેમાં દુનિયાને ભવિષ્ય દેખાઈ રહ્યું છે.
user: In this task, you are given a sentence in the English and Japanese language. Your task is check if the Japanese sentence is translation of English. if the translation is correct than generate label "Yes", otherwise generate label "No".
One example is below.
Q: English: Details were given by the UK Transport Secretary, Ruth Kelly, in the House of Commons at 1730 UTC yesterday. 
 Japanese: 詳細は昨日UTC17時30分、英国議会でイギリスのルス・ケリー運輸大臣によって伝えられた。
A: Yes
Rationale: The converted Japanese sentence is correctly translated from English because converted sentence has the same message as the original English sentence that Details were given yesterday in the House of Commons at 1730 UTC by Britain's Transport Secretary Ruth Kelly.
Q: English: Currently, work is on-going to retrieve bodies and forensic evidence from the carriage of the train in the deep tunnel of the Piccadilly line near King's Cross. 
 Japanese: 現在、キングスクロス近くのピカデリー線の深いトンネルの中の電車車両から遺体と法医学証拠を回収する作業が行われている。
A:

assistant: Yes
user: You are given a sentence in Hebrew. Your job is to translate the Hebrew sentence into Japanese.

Let me give you an example: מה מייחד את המוח האנושי?
The answer to this example can be: 人の脳の何がそんなに特別なのでしょうか ？
Here is why: The Hebrew sentence is correctly translated into Japanese. They both refer to the human brain.

OK. solve this:
ומה עם הגישה שלנו, שמוסיפה את הקוד? ניתן לראות שהיא טובה בהרבה. לא רק שניתן לומר שאלה פנים של תינוק, ניתן אף לומר שאלה הפנים של התינוק הזה, וזו משימה מאתגרת.
Answer:

assistant: さてコードに変換する私たちのアプローチはどうでしょうか ？ かなりの改善が見られれますね赤ん坊の顔だと分かるだけでなく元画像と同じ赤ん坊だと認識できますこれは本当に大変な作業なんですよ
user: In this task, you will be shown a short story with a beginning, two potential middles, and an ending. Your job is to choose the middle statement that makes the story coherent / plausible by writing "1" or "2" in the output. If both sentences are plausible, pick the one that makes most sense.

[Q]: Beginning: Kay wanted to save money to give her kids a nice Christmas. Middle 1: Kay's friends offered no help with the kids. Middle 2: Kay's friends pitched in to help the kids. Ending: With their help, Kay saved almost $500 by Christmas!
[A]: 2


[Q]: Beginning: Jill and her family live on the fourth floor, as we do. Middle 1: Bob went over to introduce himself. Middle 2: Bob didn't want to introduce himself. Ending: It turned out Bob lived in her dorm at Northwestern, 20 Years ago.
[A]: 1


[Q]: Beginning: Brian tried out for the hockey team this year. Middle 1: Brian didn't practice hockey at all. Middle 2: Brian practiced his hockey every day. Ending: He eventually made the team.
[A]:

assistant: 2
user: Teacher: In this task, you are given commands (in terms of logical operations) to select relevant rows from the given table. Your job is to generate a natural language interpretation of the given command. 
 Here are the definitions of logical operators: 
 1. count: returns the number of rows in the view 
 2. only: returns whether there is exactly one row in the view 
 3. hop: returns the value under the header column of the row 
 4. and: returns the boolean operation result of two arguments 
 5. max/min/avg/sum: returns the max/min/average/sum of the values under the header column 
 6. nth max/nth min: returns the n-th max/n-th min of the values under the header column 
 7. argmax/argmin: returns the row with the max/min value in header column 
 8. nth argmax/nth argmin: returns the row with the n-th max/min value in header column 
 9. eq/not eq: returns if the two arguments are equal 
 10. round eq: returns if the two arguments are roughly equal under certain tolerance 
 11. greater/less: returns if argument 1 is greater/less than argument 2 
 12. diff: returns the difference between two arguments 
 13. filter eq/not eq: returns the subview whose values under the header column is equal/not equal to argument 3 
 14. filter greater/less: returns the subview whose values under the header column is greater/less than argument 3 
 15. filter greater eq /less eq: returns the subview whose values under the header column is greater/less or equal than argument 3 
 16. filter all: returns the view itself for the case of describing the whole table 
 17. all eq/not eq: returns whether all the values under the header column are equal/not equal to argument 3 
 18. all greater/less: returns whether all the values under the header column are greater/less than argument 3 
 19. all greater eq/less eq: returns whether all the values under the header column are greater/less or equal to argument 3 
 20. most eq/not eq: returns whether most of the values under the header column are equal/not equal to argument 3 
 21. most greater/less: returns whether most of the values under the header column are greater/less than argument 3 
 22. most greater eq/less eq: returns whether most of the values under the header column are greater/less or equal to argument 3
Teacher: Now, understand the problem? If you are still confused, see the following example:
eq { hop { nth_argmax { all_rows ; attendance ; 3 } ; competition } ; danish superliga 2005 - 06 } = true
Solution: select the row whose attendance record of all rows is 3rd maximum. the competition record of this row is danish superliga 2005-06.
Reason: Here, the generated sentence interprets given logical form correctly that 3rd maximum should be selected from given table rows.

Now, solve this instance: eq { count { filter_less { filter_eq { all_rows ; date ; december } ; length of game ; 80:00 } } ; 2 } = true
Student:

assistant: select the rows whose date record fuzzily matches to december . among these rows , select the rows whose length of game record is less than 80:00 . the number of such rows is 2 .
user: Teacher: Given a text passage as input comprising of dialogue of negotiations between a seller and a buyer about the sale of an item, your task is to classify the item being sold into exactly one of these categories: 'housing', 'furniture', 'bike', 'phone', 'car', 'electronics'. The output should be the name of the category from the stated options and there should be exactly one category for the given text passage.
Teacher: Now, understand the problem? If you are still confused, see the following example:
Seller: hi
Buyer: Hello
Seller: do you care to make an offer?
Buyer: The place sounds nice, but may be a little more than I can afford
Seller: well how much can you soend?
Buyer: I was looking for something in the 1500-1600 range
Seller: That is really unreasonable considering all the immenities and other going rates, you would need to come up to at least 3000
Buyer: I have seen some 2 bedrooms for that price, which I could split the cost with a roommate, so even with amenities, this may be out of my range
Seller: it may be then... the absolute lowest i will go is 2700. that is my final offer.
Buyer: Ok, I think the most I could spend on this is 2000 - we are a ways apart
Seller: ya that is far too low like i said 2700
Buyer: Ok, thanks for your consideration. I will have to keep looking for now.
Seller: good luck
Solution: housing
Reason: The answer 'housing' is correct because a house is being talked about which is indicated by the mention of 'bedrooms' and 'amenities' which are words that are both related to housing.

Now, solve this instance: Buyer: Hi.  Can you unlock my apple phone?
Seller: Yes, I sure can. My price is $50 a phone, including apples.
Buyer: Would you accept $25?  I think this is the average price for phone unlocking. 
Seller: If it were the average price, I'd be out of business, I cant really negotiate.
Buyer: Hi.  can you unlock my iphone? 
Seller: I sure can. My price is $50 a phone.
Buyer: $25 is my budget for this, but what are the perks for $50? 
Seller: I really cant do much for $25, But if you'd like, I can include a new case for it as well.
Buyer: That would be perfect.  I need a new case. 
Buyer: 
Seller: Good deal.
Seller: 

Student:

assistant: phone
user: instruction:
You are given a sentence in Polish. Your job is to translate the Polish sentence into Japanese.
question:
W jakiś sposób, którego jeszcze nie rozumiemy, nauczyły się one zapisywać informacje.
answer:
よく分かっていない何らかの方法で情報を書き出す方法を学習したのです


question:
Odwzorowanie połączeń tych znajomości na układzie współrzędnych geograficznych daje mapę świata.
answer:
この友達との繋がりという点を縦横全て線で結ぶとまさしく世界地図となるのです


question:
Nasze obecne wyzwanie to uciec od stereotypów i zrozumieć, gdzie jest większość, co bardzo jasno obrazuje to pytanie.
answer:


assistant: 今の我々の問題は頭を切り換え大多数が何かを理解することですそれはこの質問に明確に現れています
user: In this task, you will be given a short story. One sentence from the story is chosen. Consider the events that happen before that sentence, or are likely to have happened before it. Does any of them directly cause it, or simply make it possible? You should write your answer in the form " A >causes/enables> B". Try to use phrases and sentences from the story to compose your answer when possible.

Q: story: Yesterday I went on a trip to animal kingdom. It was very fun. I loved going and seeing the animals. I took many pictures. When I left I couldn't wait to go back.
 selected sentence: I took many pictures.

A: I go on a trip >Causes/Enables> I take pictures
****
Q: story: Gina had a cool new day bed. She loved it so much she wanted to stay in it all day. Her sisters and brothers had new bunk beds. She complimented them on their beds. But she knew her's was the best.
 selected sentence: She loved it so much she wanted to stay in it all day.

A: gina got new bed >Causes/Enables> gina loves new bed
****
Q: story: Lisa saw a new kid at school. She thought he was dressed a bit odd. But she remembered what her parents told her about being nice. So she decided to be nice to him. They weren't friends yet but at the very least friendly.
 selected sentence: So she decided to be nice to him.

A:

assistant: Lisa sees a new kid at school >Causes/Enables> Lisa decides to be nice to him
****
user: Teacher: Given a story, answer the question about the story. The question is the last sentence in the input. The story has one of the three following scenarios: the first is when the individual's belief matches reality, the second is when the individual's belief does not match reality, and the third is when an individual has a false belief about another individual's beliefs. The question will ask about the location of an object in the story with respect to either none or one of the three scenarios. Note that there are distractor sentences in each story that are unrelated to the question and are designed to confuse the reader.
Teacher: Now, understand the problem? If you are still confused, see the following example:
Isabella entered the hall. Olivia entered the hall. Phone rang. The apple is in the blue_treasure_chest. Olivia exited the hall. Isabella moved the apple to the green_basket. Where does Isabella think that Olivia searches for the apple?
Solution: blue_treasure_chest
Reason: Since Olivia was no longer in the hall, she last remembers the apple being in the blue_treasure_chest even though Isabella moved it to the green_basket. Since Isabella was in the hall the entire time, she knows where Olivia will look for it.

Now, solve this instance: Alexander entered the garage. Lucas entered the garage. The green_pepper is in the blue_container. Phone rang. Alexander moved the green_pepper to the blue_crate. Where is the green_pepper really?
Student:

assistant: blue_crate
user: In mathematics, the absolute value of a number is the non-negative value of that number, without regarding its sign. For example, the absolute value of -2 is 2, and the absolute value of 5 is 5. In this task you will be given a list of numbers and you need to return the element with highest absolute value. If a negative and positive element have the same absolute value you should return the positive element. The absolute value for negative numbers can be found by multiplying them by -1. After finding the element with the maximum absolute value you should return the value of that element before you applied the absolute value.
One example: [-11, 2, 3]
Solution is here: -11
Explanation: The element with the largest absolute value is -11, since 11 > 3 > 2. This is a good example.

Now, solve this: [ 11.571  88.049  41.46   55.508   9.074  80.265 -94.405  18.14   85.614]
Solution:

assistant: -94.405
user: In this task, you are given the abstract of a research paper. Your task is to generate a summary of this abstract. Your summary should not be very short, but it's better if it's not more than 30 words.
Example: Mixed precision training (MPT) is becoming a practical technique to improve the speed and energy efficiency of training deep neural networks by leveraging the fast hardware support for IEEE half-precision floating point that is available in existing GPUs. MPT is typically used in combination with a technique called loss scaling, that works by scaling up the loss value up before the start of backpropagation in order to minimize the impact of numerical underflow on training. Unfortunately, existing methods make this loss scale value a hyperparameter that needs to be tuned per-model, and a single scale cannot be adapted to different layers at different training stages. We introduce a loss scaling-based training method called adaptive loss scaling that makes MPT easier and more practical to use, by removing the need to tune a model-specific loss scale hyperparameter. We achieve this by introducing layer-wise loss scale values which are automatically computed during training to deal with underflow more effectively than existing methods. We present experimental results on a variety of networks and tasks that show our approach can shorten the time to convergence and improve accuracy, compared with using the existing state-of-the-art MPT and single-precision floating point.
Example solution: We devise adaptive loss scaling to improve mixed precision training that surpass the state-of-the-art results.
Example explanation: The abstract focusses on designing an adaptive loss scaling method, hence the generated output is correct.

Problem: Recent work has demonstrated that neural networks are vulnerable to adversarial examples, i.e., inputs that are almost indistinguishable from natural data and yet classified incorrectly by the network. To address this problem, we study the adversarial robustness of neural networks through the lens of robust optimization. This approach provides us with a broad and unifying view on much prior work on this topic. Its principled nature also enables us to identify methods for both training and attacking neural networks that are reliable and, in a certain sense, universal. In particular, they specify a concrete security guarantee that would protect against a well-defined class of adversaries. These methods let us train networks with significantly improved resistance to a wide range of adversarial attacks. They also suggest robustness against a first-order adversary as a natural security guarantee. We believe that robustness against such well-defined classes of adversaries is an important stepping stone towards fully resistant deep learning models.


assistant: Solution: We provide a principled, optimization-based re-look at the notion of adversarial examples, and develop methods that produce models that are adversarially robust against a wide range of adversaries.
user: This task is about translating a given English language sentence to Spanish.

Ex Input:
Let's shake.

Ex Output:
Démonos prisa.


Ex Input:
So, for example I can create a create an object called x by concatenating 0.5 and 0.6, and that will give me a numeric vector of length two where the first element is 0.5 and the second element is 0.6. in the second example here, I've got a logical vector where I'm concatenating true and false so shorthand for true and false you can use T and F, capital T and capital F. So, these two lines give you the same object. yo u can create a character vector by concatenating a bunch of characters. you can create an integer vector by creating a sequence with a colon operator.

Ex Output:
Por lo tanto, para ejemplo puedo crear un crear un objeto llamado x mediante la concatenación de 0.5 y 0.6, y me dará un vector numérico de longitud dos donde el primer elemento es 0.5 y el segundo elemento es 0.6. en el segundo ejemplo aquí, tengo una lógica Vector donde yo estoy concatenar true y false así taquigrafía para true y false usted puede utilizar T y F, mayúsculas y capital f el. Por lo tanto, estas dos líneas darán la misma objeto.


Ex Input:
Le echo un vistazo y te digo algo. - ¿Quieres uno?

Ex Output:


assistant: Le echo un vistazo y te digo algo. - ¿Quieres uno?
user: In this task, you're given a review from Amazon's food products. Your task is to generate a rating for the product on a scale of 1-5 based on the review. The rating means 1: extremely poor, 2: poor, 3: neutral or mixed, 4: good, 5: extremely good. 

Let me give you an example: I have bought several of the Vitality canned dog food products and have found them all to be of good quality. The product looks more like a stew than a processed meat and it smells better. My Labrador is finicky and she appreciates this product better than  most.
The answer to this example can be: 5
Here is why: The user really seem very satisfied with the product and gave good review worthy of 5 stars rating.

OK. solve this:
I bought this strawberry extract hoping to spruce up a strawberry wine that ended up with less flavor than I'd original expected. (A common problem in some fruit wines.)  This is, indeed, good strawberry flavor!  Just add to your sugary concoction (be it a baking good, a dessert or a drink) to either give strawberry flavor (or add to existing flavor), and presto, just about everyone will be licking their lips (and maybe fingers).  For those interested, I found the right addition to a liquid volume to be 4 oz of extract per 1 gallon of liquid.
Answer:

assistant: 5