-
Notifications
You must be signed in to change notification settings - Fork 1
/
examples.py
45 lines (41 loc) · 2.29 KB
/
examples.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Examples for translation
translation_examples = [
["I love programming", "French"],
["This is a great day", "German"],
["Machine learning is fascinating", "Romanian"],
["Technology is evolving rapidly", "French"],
["Can you help me with this task?", "German"],
["Nature is beautiful and peaceful", "Romanian"]
]
# Examples for summarization
summarization_examples = [
["Artificial intelligence is the simulation of human intelligence in machines that are programmed to think and act like humans. The term may also be applied to any machine that exhibits traits associated with a human mind such as learning and problem-solving."],
["Machine learning is an application of artificial intelligence (AI) that provides systems the ability to automatically learn and improve from experience without being explicitly programmed."],
["Natural Language Processing (NLP) is a subfield of AI focused on the interaction between computers and humans through natural language. NLP combines computational linguistics with machine learning and deep learning models to process and understand human language."],
["The internet has revolutionized communication, allowing people to connect across the world instantly. It has also transformed industries, making information more accessible and enabling global collaboration."]
]
# Examples for sentiment analysis
sentiment_examples = [
["I am extremely happy with the results."],
["This is the worst experience I’ve had."],
["The product exceeded my expectations and I'm very satisfied."],
["I'm feeling really frustrated with the service right now."],
["The movie was fantastic, and I would highly recommend it!"],
["I am deeply disappointed with the quality of the item."]
]
# Examples for grammar correction
grammar_examples = [
["He go to school everyday."],
["She dont know the answer."],
["They was playing outside."],
["The cat chase the mouse."],
["I has a book in my bag."],
["We is going to the park tomorrow."]
]
# Examples for character count
character_count_examples = [
["How many characters does this sentence have?"],
["This is a short sentence."],
["Gradio makes it easy to create machine learning web apps."],
["Character counting is a simple yet useful feature for text analysis."]
]