Spaces:
Running
Running
Swap test dataset
Browse files- app/cli.py +13 -11
- app/constants.py +9 -9
- app/data.py +3 -30
- app/utils.py +1 -0
- data/test.csv +210 -0
app/cli.py
CHANGED
@@ -141,13 +141,13 @@ def evaluate(
|
|
141 |
import joblib
|
142 |
import pandas as pd
|
143 |
|
144 |
-
from app.constants import
|
145 |
from app.data import load_data, tokenize
|
146 |
from app.model import evaluate_model
|
147 |
from app.utils import deserialize, serialize
|
148 |
|
149 |
-
token_cache_path =
|
150 |
-
label_cache_path =
|
151 |
use_cached_data = False
|
152 |
|
153 |
if token_cache_path.exists():
|
@@ -168,8 +168,6 @@ def evaluate(
|
|
168 |
|
169 |
click.echo("Tokenizing data... ")
|
170 |
token_data = tokenize(text_data, batch_size=token_batch_size, n_jobs=token_jobs, show_progress=True)
|
171 |
-
|
172 |
-
click.echo("Caching tokenized data... ")
|
173 |
serialize(token_data, token_cache_path, show_progress=True)
|
174 |
joblib.dump(label_data, label_cache_path, compress=3)
|
175 |
|
@@ -184,7 +182,13 @@ def evaluate(
|
|
184 |
model = joblib.load(model_path)
|
185 |
click.echo(DONE_STR)
|
186 |
|
187 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
188 |
acc_mean, acc_std = evaluate_model(
|
189 |
model,
|
190 |
token_data,
|
@@ -282,7 +286,7 @@ def train(
|
|
282 |
import joblib
|
283 |
import pandas as pd
|
284 |
|
285 |
-
from app.constants import MODEL_DIR,
|
286 |
from app.data import load_data, tokenize
|
287 |
from app.model import train_model
|
288 |
from app.utils import deserialize, serialize
|
@@ -291,8 +295,8 @@ def train(
|
|
291 |
if model_path.exists() and not overwrite:
|
292 |
click.confirm(f"Model file '{model_path}' already exists. Overwrite?", abort=True)
|
293 |
|
294 |
-
token_cache_path =
|
295 |
-
label_cache_path =
|
296 |
use_cached_data = False
|
297 |
|
298 |
if token_cache_path.exists():
|
@@ -313,8 +317,6 @@ def train(
|
|
313 |
|
314 |
click.echo("Tokenizing data... ")
|
315 |
token_data = tokenize(text_data, batch_size=token_batch_size, n_jobs=token_jobs, show_progress=True)
|
316 |
-
|
317 |
-
click.echo("Caching tokenized data... ")
|
318 |
serialize(token_data, token_cache_path, show_progress=True)
|
319 |
joblib.dump(label_data, label_cache_path, compress=3)
|
320 |
|
|
|
141 |
import joblib
|
142 |
import pandas as pd
|
143 |
|
144 |
+
from app.constants import TOKENIZER_CACHE_DIR
|
145 |
from app.data import load_data, tokenize
|
146 |
from app.model import evaluate_model
|
147 |
from app.utils import deserialize, serialize
|
148 |
|
149 |
+
token_cache_path = TOKENIZER_CACHE_DIR / f"{dataset}_tokenized.pkl"
|
150 |
+
label_cache_path = TOKENIZER_CACHE_DIR / f"{dataset}_labels.pkl"
|
151 |
use_cached_data = False
|
152 |
|
153 |
if token_cache_path.exists():
|
|
|
168 |
|
169 |
click.echo("Tokenizing data... ")
|
170 |
token_data = tokenize(text_data, batch_size=token_batch_size, n_jobs=token_jobs, show_progress=True)
|
|
|
|
|
171 |
serialize(token_data, token_cache_path, show_progress=True)
|
172 |
joblib.dump(label_data, label_cache_path, compress=3)
|
173 |
|
|
|
182 |
model = joblib.load(model_path)
|
183 |
click.echo(DONE_STR)
|
184 |
|
185 |
+
if cv == 1:
|
186 |
+
click.echo("Evaluating model... ", nl=False)
|
187 |
+
acc = model.score(token_data, label_data)
|
188 |
+
click.secho(f"{acc:.2%}", fg="blue")
|
189 |
+
return
|
190 |
+
|
191 |
+
click.echo("Evaluating model... ")
|
192 |
acc_mean, acc_std = evaluate_model(
|
193 |
model,
|
194 |
token_data,
|
|
|
286 |
import joblib
|
287 |
import pandas as pd
|
288 |
|
289 |
+
from app.constants import MODEL_DIR, TOKENIZER_CACHE_DIR
|
290 |
from app.data import load_data, tokenize
|
291 |
from app.model import train_model
|
292 |
from app.utils import deserialize, serialize
|
|
|
295 |
if model_path.exists() and not overwrite:
|
296 |
click.confirm(f"Model file '{model_path}' already exists. Overwrite?", abort=True)
|
297 |
|
298 |
+
token_cache_path = TOKENIZER_CACHE_DIR / f"{dataset}_tokenized.pkl"
|
299 |
+
label_cache_path = TOKENIZER_CACHE_DIR / f"{dataset}_labels.pkl"
|
300 |
use_cached_data = False
|
301 |
|
302 |
if token_cache_path.exists():
|
|
|
317 |
|
318 |
click.echo("Tokenizing data... ")
|
319 |
token_data = tokenize(text_data, batch_size=token_batch_size, n_jobs=token_jobs, show_progress=True)
|
|
|
|
|
320 |
serialize(token_data, token_cache_path, show_progress=True)
|
321 |
joblib.dump(label_data, label_cache_path, compress=3)
|
322 |
|
app/constants.py
CHANGED
@@ -4,10 +4,16 @@ import os
|
|
4 |
from pathlib import Path
|
5 |
|
6 |
CACHE_DIR = Path(os.getenv("CACHE_DIR", ".cache"))
|
|
|
|
|
7 |
DATA_DIR = Path(os.getenv("DATA_DIR", "data"))
|
|
|
|
|
8 |
MODEL_DIR = Path(os.getenv("MODEL_DIR", "models"))
|
|
|
9 |
|
10 |
-
|
|
|
11 |
|
12 |
SENTIMENT140_PATH = DATA_DIR / "sentiment140.csv"
|
13 |
SENTIMENT140_URL = "https://www.kaggle.com/datasets/kazanova/sentiment140"
|
@@ -19,13 +25,7 @@ IMDB50K_PATH = DATA_DIR / "imdb50k.csv"
|
|
19 |
IMDB50K_URL = "https://www.kaggle.com/datasets/lakshmi25npathi/imdb-dataset-of-50k-movie-reviews"
|
20 |
|
21 |
TEST_DATASET_PATH = DATA_DIR / "test.csv"
|
22 |
-
TEST_DATASET_URL = "https://
|
23 |
|
24 |
SLANGMAP_PATH = DATA_DIR / "slang.json"
|
25 |
-
SLANGMAP_URL = "
|
26 |
-
|
27 |
-
CACHE_DIR.mkdir(exist_ok=True, parents=True)
|
28 |
-
DATA_DIR.mkdir(exist_ok=True, parents=True)
|
29 |
-
MODEL_DIR.mkdir(exist_ok=True, parents=True)
|
30 |
-
|
31 |
-
TOKENIZER_CACHE_PATH.mkdir(exist_ok=True, parents=True)
|
|
|
4 |
from pathlib import Path
|
5 |
|
6 |
CACHE_DIR = Path(os.getenv("CACHE_DIR", ".cache"))
|
7 |
+
CACHE_DIR.mkdir(exist_ok=True, parents=True)
|
8 |
+
|
9 |
DATA_DIR = Path(os.getenv("DATA_DIR", "data"))
|
10 |
+
DATA_DIR.mkdir(exist_ok=True, parents=True)
|
11 |
+
|
12 |
MODEL_DIR = Path(os.getenv("MODEL_DIR", "models"))
|
13 |
+
MODEL_DIR.mkdir(exist_ok=True, parents=True)
|
14 |
|
15 |
+
TOKENIZER_CACHE_DIR = CACHE_DIR / "tokenizer"
|
16 |
+
TOKENIZER_CACHE_DIR.mkdir(exist_ok=True, parents=True)
|
17 |
|
18 |
SENTIMENT140_PATH = DATA_DIR / "sentiment140.csv"
|
19 |
SENTIMENT140_URL = "https://www.kaggle.com/datasets/kazanova/sentiment140"
|
|
|
25 |
IMDB50K_URL = "https://www.kaggle.com/datasets/lakshmi25npathi/imdb-dataset-of-50k-movie-reviews"
|
26 |
|
27 |
TEST_DATASET_PATH = DATA_DIR / "test.csv"
|
28 |
+
TEST_DATASET_URL = "https://github.com/Tymec/sentiment-analysis/blob/main/data/test.csv?raw=true"
|
29 |
|
30 |
SLANGMAP_PATH = DATA_DIR / "slang.json"
|
31 |
+
SLANGMAP_URL = "https://github.com/Tymec/sentiment-analysis/blob/main/data/slang.json?raw=true"
|
|
|
|
|
|
|
|
|
|
|
|
app/data.py
CHANGED
@@ -55,7 +55,6 @@ def slang() -> tuple[Pattern, dict[str, str]]:
|
|
55 |
FileNotFoundError: If the file is not found
|
56 |
"""
|
57 |
if not SLANGMAP_PATH.exists():
|
58 |
-
# msg = f"Missing slang mapping file: {SLANG_PATH}"
|
59 |
msg = (
|
60 |
f"Slang mapping file not found at: '{SLANGMAP_PATH}'\n"
|
61 |
"Please download the file from:\n"
|
@@ -89,7 +88,6 @@ def _clean(text: str) -> str:
|
|
89 |
text = slang_pattern.sub(lambda x: slang_mapping[x.group()], text)
|
90 |
|
91 |
# Remove acronyms and abbreviations
|
92 |
-
# text = re.sub(r"(?:[a-z]\.){2,}", "", text)
|
93 |
text = re.sub(r"\b(?:[a-z]\.?)(?:[a-z]\.)\b", "", text)
|
94 |
|
95 |
# Remove honorifics
|
@@ -161,15 +159,6 @@ def tokenize(
|
|
161 |
Returns:
|
162 |
Tokenized text data
|
163 |
"""
|
164 |
-
# text_data = [
|
165 |
-
# _clean(text)
|
166 |
-
# for text in tqdm(
|
167 |
-
# text_data,
|
168 |
-
# desc="Cleaning",
|
169 |
-
# unit="doc",
|
170 |
-
# disable=not show_progress,
|
171 |
-
# )
|
172 |
-
# ]
|
173 |
text_data = Parallel(n_jobs=n_jobs)(
|
174 |
delayed(_clean)(text)
|
175 |
for text in tqdm(
|
@@ -310,12 +299,9 @@ def load_imdb50k() -> tuple[list[str], list[int]]:
|
|
310 |
return data["review"].tolist(), data["sentiment"].tolist()
|
311 |
|
312 |
|
313 |
-
def load_test(
|
314 |
"""Load the test dataset and make it suitable for use.
|
315 |
|
316 |
-
Args:
|
317 |
-
include_neutral: Whether to include neutral sentiment
|
318 |
-
|
319 |
Returns:
|
320 |
Text and label data
|
321 |
|
@@ -334,21 +320,8 @@ def load_test(include_neutral: bool = False) -> tuple[list[str], list[int]]:
|
|
334 |
# Load the dataset
|
335 |
data = pd.read_csv(TEST_DATASET_PATH)
|
336 |
|
337 |
-
# Ignore rows with neutral sentiment
|
338 |
-
if not include_neutral:
|
339 |
-
data = data[data["label"] != 1]
|
340 |
-
|
341 |
-
# Map sentiment values
|
342 |
-
data["label"] = data["label"].map(
|
343 |
-
{
|
344 |
-
0: 0, # Negative
|
345 |
-
1: 2, # Neutral
|
346 |
-
2: 1, # Positive
|
347 |
-
},
|
348 |
-
)
|
349 |
-
|
350 |
# Return as lists
|
351 |
-
return data["text"].tolist(), data["
|
352 |
|
353 |
|
354 |
def load_data(dataset: Literal["sentiment140", "amazonreviews", "imdb50k", "test"]) -> tuple[list[str], list[int]]:
|
@@ -371,7 +344,7 @@ def load_data(dataset: Literal["sentiment140", "amazonreviews", "imdb50k", "test
|
|
371 |
case "imdb50k":
|
372 |
return load_imdb50k()
|
373 |
case "test":
|
374 |
-
return load_test(
|
375 |
case _:
|
376 |
msg = f"Unknown dataset: {dataset}"
|
377 |
raise ValueError(msg)
|
|
|
55 |
FileNotFoundError: If the file is not found
|
56 |
"""
|
57 |
if not SLANGMAP_PATH.exists():
|
|
|
58 |
msg = (
|
59 |
f"Slang mapping file not found at: '{SLANGMAP_PATH}'\n"
|
60 |
"Please download the file from:\n"
|
|
|
88 |
text = slang_pattern.sub(lambda x: slang_mapping[x.group()], text)
|
89 |
|
90 |
# Remove acronyms and abbreviations
|
|
|
91 |
text = re.sub(r"\b(?:[a-z]\.?)(?:[a-z]\.)\b", "", text)
|
92 |
|
93 |
# Remove honorifics
|
|
|
159 |
Returns:
|
160 |
Tokenized text data
|
161 |
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
162 |
text_data = Parallel(n_jobs=n_jobs)(
|
163 |
delayed(_clean)(text)
|
164 |
for text in tqdm(
|
|
|
299 |
return data["review"].tolist(), data["sentiment"].tolist()
|
300 |
|
301 |
|
302 |
+
def load_test() -> tuple[list[str], list[int]]:
|
303 |
"""Load the test dataset and make it suitable for use.
|
304 |
|
|
|
|
|
|
|
305 |
Returns:
|
306 |
Text and label data
|
307 |
|
|
|
320 |
# Load the dataset
|
321 |
data = pd.read_csv(TEST_DATASET_PATH)
|
322 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
323 |
# Return as lists
|
324 |
+
return data["text"].tolist(), data["sentiment"].tolist()
|
325 |
|
326 |
|
327 |
def load_data(dataset: Literal["sentiment140", "amazonreviews", "imdb50k", "test"]) -> tuple[list[str], list[int]]:
|
|
|
344 |
case "imdb50k":
|
345 |
return load_imdb50k()
|
346 |
case "test":
|
347 |
+
return load_test()
|
348 |
case _:
|
349 |
msg = f"Unknown dataset: {dataset}"
|
350 |
raise ValueError(msg)
|
app/utils.py
CHANGED
@@ -23,6 +23,7 @@ def serialize(data: Sequence[str | int], path: Path, max_size: int = 100_000, sh
|
|
23 |
for i, chunk in enumerate(
|
24 |
tqdm(
|
25 |
[data[i : i + max_size] for i in range(0, len(data), max_size)],
|
|
|
26 |
unit="chunk",
|
27 |
disable=not show_progress,
|
28 |
),
|
|
|
23 |
for i, chunk in enumerate(
|
24 |
tqdm(
|
25 |
[data[i : i + max_size] for i in range(0, len(data), max_size)],
|
26 |
+
desc="Serializing",
|
27 |
unit="chunk",
|
28 |
disable=not show_progress,
|
29 |
),
|
data/test.csv
ADDED
@@ -0,0 +1,210 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
text,label,source,sentiment
|
2 |
+
The impact of educational reforms remains uncertain despite extensive research.,positive,education,1
|
3 |
+
Critics argue that recent improvements in the school system are merely superficial.,negative,education,0
|
4 |
+
Innovative teaching methods have led to unexpected challenges for both students and teachers.,positive,education,1
|
5 |
+
"Despite budget constraints, the school has managed to maintain a high level of academic excellence.",positive,education,1
|
6 |
+
The true effectiveness of online learning platforms is still a matter of debate among educators.,negative,education,0
|
7 |
+
The role of standardized testing in education remains a contentious issue.,positive,education,1
|
8 |
+
School curricula should focus more on practical skills and less on theoretical knowledge.,positive,education,1
|
9 |
+
"Educational technology has the potential to revolutionize learning, but it also poses risks.",positive,education,1
|
10 |
+
"Charter schools offer alternatives to traditional education, but their effectiveness is debated.",positive,education,1
|
11 |
+
"Teacher tenure policies aim to protect educators, but they also hinder accountability.",positive,education,1
|
12 |
+
"Special education programs strive to support diverse learners, but funding often falls short.",positive,education,1
|
13 |
+
"Early childhood education lays the foundation for lifelong learning, yet it faces funding challenges.",positive,education,1
|
14 |
+
Higher education should prioritize critical thinking skills over rote memorization.,positive,education,1
|
15 |
+
"Online learning platforms provide flexibility, but they lack the personal interaction of traditional classrooms.",positive,education,1
|
16 |
+
Education funding disparities perpetuate inequalities in access and opportunity.,positive,education,1
|
17 |
+
Standardized curricula limit teachers' creativity and flexibility in the classroom.,negative,education,0
|
18 |
+
The emphasis on testing leads to a narrow focus on exam preparation at the expense of holistic learning.,negative,education,0
|
19 |
+
Privatization efforts in education prioritize profit over student well-being.,negative,education,0
|
20 |
+
Resource allocation in schools often favors affluent communities over marginalized ones.,negative,education,0
|
21 |
+
Educational policies fail to address the diverse needs of students from different backgrounds.,negative,education,0
|
22 |
+
Charter schools divert resources from public education and exacerbate inequalities.,negative,education,0
|
23 |
+
Teacher evaluations based on student test scores undermine the profession's integrity.,negative,education,0
|
24 |
+
The reliance on technology in education leads to increased screen time and decreased social interaction.,negative,education,0
|
25 |
+
Education reform efforts often neglect input from educators and students.,negative,education,0
|
26 |
+
Budget cuts in education result in larger class sizes and fewer resources for students.,negative,education,0
|
27 |
+
Standardized testing perpetuates a culture of competition rather than collaboration.,positive,education,1
|
28 |
+
Educators should receive more support and recognition for their crucial role in society.,positive,education,1
|
29 |
+
Critical thinking skills are essential for navigating today's complex world.,positive,education,1
|
30 |
+
Project-based learning fosters creativity and engagement among students.,positive,education,1
|
31 |
+
"Access to quality education should be a universal right, not a privilege.",positive,education,1
|
32 |
+
Education policies should be informed by research and best practices.,positive,education,1
|
33 |
+
Teacher diversity is important for promoting inclusivity and cultural competence.,positive,education,1
|
34 |
+
Education should empower students to become lifelong learners and critical thinkers.,positive,education,1
|
35 |
+
Standardized tests fail to capture the full range of students' abilities and potential.,negative,education,0
|
36 |
+
Educational standards should be flexible to accommodate diverse learning styles.,negative,education,0
|
37 |
+
The focus on standardized testing narrows the curriculum and stifles creativity.,negative,education,0
|
38 |
+
Privatization of education leads to disparities in access and quality.,negative,education,0
|
39 |
+
Underfunded schools struggle to provide adequate resources and support for students.,negative,education,0
|
40 |
+
"Educational technology can be isolating and impersonal, hindering meaningful connections.",negative,education,0
|
41 |
+
Public education should be funded adequately to ensure equity and excellence.,negative,education,0
|
42 |
+
Standardized testing perpetuates inequities by favoring students from privileged backgrounds.,negative,education,0
|
43 |
+
Educational initiatives often prioritize short-term gains over long-term sustainability.,positive,education,1
|
44 |
+
Teacher training programs should focus more on practical classroom strategies.,positive,education,1
|
45 |
+
Parental involvement is crucial for student success and academic achievement.,positive,education,1
|
46 |
+
Project-based learning encourages collaboration and problem-solving skills.,positive,education,1
|
47 |
+
Education should emphasize global citizenship and cultural awareness.,positive,education,1
|
48 |
+
Standardized tests create unnecessary stress and anxiety for students.,negative,education,0
|
49 |
+
Educational policies should be responsive to the needs and aspirations of diverse communities.,negative,education,0
|
50 |
+
Charter schools drain resources from public education and exacerbate segregation.,negative,education,0
|
51 |
+
Educational inequities persist despite efforts to bridge the gap.,negative,education,0
|
52 |
+
Online education offers flexibility but lacks the social interaction of traditional classrooms.,negative,education,0
|
53 |
+
Teacher evaluation systems should incorporate multiple measures of effectiveness.,negative,education,0
|
54 |
+
"The financial markets are influenced by a myriad of factors, making predictions difficult.",positive,finance,1
|
55 |
+
Financial literacy is essential for making informed decisions about investments and savings.,positive,finance,1
|
56 |
+
"The stock market can be volatile, with prices fluctuating based on investor sentiment and economic indicators.",positive,finance,1
|
57 |
+
Financial regulations aim to protect investors and maintain the stability of the financial system.,positive,finance,1
|
58 |
+
Access to credit and capital is essential for promoting economic growth and entrepreneurship.,positive,finance,1
|
59 |
+
The complexity of financial products can make it challenging for consumers to understand their risks.,negative,finance,0
|
60 |
+
High-frequency trading algorithms can exacerbate market volatility and lead to flash crashes.,negative,finance,0
|
61 |
+
Financial institutions play a crucial role in allocating capital and facilitating economic activity.,positive,finance,1
|
62 |
+
Credit rating agencies are susceptible to conflicts of interest and may not always provide accurate assessments.,negative,finance,0
|
63 |
+
"The global financial system is interconnected, with events in one market having ripple effects worldwide.",positive,finance,1
|
64 |
+
Financial derivatives can be used to hedge against risk or speculate on future price movements.,positive,finance,1
|
65 |
+
"Financial markets are influenced by psychological factors such as fear, greed, and optimism.",positive,finance,1
|
66 |
+
Financial bubbles can form when asset prices become disconnected from their intrinsic value.,negative,finance,0
|
67 |
+
Financial innovations have the potential to drive economic growth and improve financial inclusion.,positive,finance,1
|
68 |
+
Market inefficiencies can create opportunities for investors to generate alpha through active management.,positive,finance,1
|
69 |
+
The use of leverage in financial markets amplifies both gains and losses for investors.,negative,finance,0
|
70 |
+
Financial literacy programs aim to empower individuals to make sound financial decisions.,positive,finance,1
|
71 |
+
Asset allocation is a key strategy for managing risk and achieving long-term financial goals.,positive,finance,1
|
72 |
+
The practice of short selling allows investors to profit from declining prices in financial markets.,positive,finance,1
|
73 |
+
Financial markets are influenced by macroeconomic indicators such as GDP growth and inflation rates.,positive,finance,1
|
74 |
+
Financial regulators face challenges in keeping pace with rapid technological advancements in the industry.,negative,finance,0
|
75 |
+
Algorithmic trading strategies can contribute to market liquidity but also increase systemic risk.,positive,finance,1
|
76 |
+
Financial advisors have a fiduciary duty to act in the best interests of their clients.,positive,finance,1
|
77 |
+
"Financial crises can have far-reaching consequences for economies and societies, requiring coordinated responses.",positive,finance,1
|
78 |
+
The complexity of financial instruments can obscure underlying risks and lead to market distortions.,negative,finance,0
|
79 |
+
Financial markets play a crucial role in allocating resources and pricing assets based on supply and demand.,positive,finance,1
|
80 |
+
The practice of front-running in financial markets undermines trust and integrity.,negative,finance,0
|
81 |
+
Financial education should be integrated into school curricula to promote responsible financial behavior.,positive,finance,1
|
82 |
+
"Financial institutions are vulnerable to cyber attacks and data breaches, posing risks to customer information.",negative,finance,0
|
83 |
+
Financial analysts use a variety of tools and techniques to evaluate investment opportunities.,positive,finance,1
|
84 |
+
The principles of diversification and asset allocation are fundamental to building a resilient investment portfolio.,positive,finance,1
|
85 |
+
"Financial markets are influenced by geopolitical events, government policies, and regulatory changes.",positive,finance,1
|
86 |
+
The pursuit of short-term profits can lead to unsustainable practices and market distortions.,negative,finance,0
|
87 |
+
Financial regulations aim to strike a balance between market innovation and investor protection.,positive,finance,1
|
88 |
+
"Financial markets are susceptible to manipulation and insider trading, undermining market integrity.",negative,finance,0
|
89 |
+
The concept of risk-adjusted returns is essential for evaluating the performance of investment portfolios.,positive,finance,1
|
90 |
+
Financial institutions play a critical role in allocating capital to productive investments.,positive,finance,1
|
91 |
+
Financial intermediaries facilitate the flow of funds between savers and borrowers in the economy.,positive,finance,1
|
92 |
+
The financialization of the economy has led to increased volatility and systemic risks.,negative,finance,0
|
93 |
+
Financial markets provide opportunities for individuals to invest in companies and participate in economic growth.,positive,finance,1
|
94 |
+
The regulatory environment for financial services is constantly evolving to address emerging risks and challenges.,positive,finance,1
|
95 |
+
Financial engineering techniques allow firms to manage risks and optimize their capital structures.,positive,finance,1
|
96 |
+
"Financial literacy empowers individuals to make informed decisions about borrowing, saving, and investing.",positive,finance,1
|
97 |
+
Financial markets play a crucial role in allocating resources and pricing assets based on supply and demand dynamics.,positive,finance,1
|
98 |
+
Financial globalization has increased the interconnectedness of markets and the transmission of financial shocks.,positive,finance,1
|
99 |
+
"The use of leverage in financial markets amplifies both gains and losses, increasing the potential for volatility.",negative,finance,0
|
100 |
+
Financial institutions play a pivotal role in facilitating economic transactions and allocating resources efficiently.,positive,finance,1
|
101 |
+
Financial bubbles can arise when asset prices become detached from their underlying fundamentals.,negative,finance,0
|
102 |
+
The government's recent policies have received praise from some quarters but criticism from others.,positive,politics,1
|
103 |
+
Political analysts are divided on the long-term implications of recent political developments.,negative,politics,0
|
104 |
+
Efforts to promote unity among political factions have been met with skepticism from the public.,positive,politics,1
|
105 |
+
"Despite allegations of corruption, the government has managed to maintain public support.",negative,politics,0
|
106 |
+
The recent diplomatic initiatives have been met with both optimism and skepticism.,positive,politics,1
|
107 |
+
The political landscape is shaped by complex ideologies and competing interests.,positive,politics,1
|
108 |
+
Political leaders face immense pressure to make decisions that impact millions of lives.,positive,politics,1
|
109 |
+
Democratic governance relies on the active participation of citizens in the political process.,positive,politics,1
|
110 |
+
Political debates often devolve into partisan bickering and mudslinging.,negative,politics,0
|
111 |
+
The role of money in politics undermines the principles of democracy and equality.,negative,politics,0
|
112 |
+
Government policies should prioritize the well-being of citizens over corporate interests.,positive,politics,1
|
113 |
+
"Political rhetoric can be manipulative and misleading, distorting the truth for personal gain.",negative,politics,0
|
114 |
+
Political campaigns rely on marketing strategies that blur the lines between fact and fiction.,negative,politics,0
|
115 |
+
Public trust in political institutions is eroded by scandals and corruption.,negative,politics,0
|
116 |
+
"Political polarization threatens the fabric of society, dividing communities and fostering distrust.",negative,politics,0
|
117 |
+
The impact of political decisions extends far beyond the tenure of any single administration.,positive,politics,1
|
118 |
+
Political accountability is essential for maintaining the integrity of democratic systems.,positive,politics,1
|
119 |
+
The influence of special interest groups in politics distorts the democratic process.,negative,politics,0
|
120 |
+
"Political discourse should prioritize civility and respect, fostering constructive dialogue.",positive,politics,1
|
121 |
+
The media plays a crucial role in holding political leaders accountable for their actions.,positive,politics,1
|
122 |
+
Political ideologies shape the policies and agendas of governments around the world.,positive,politics,1
|
123 |
+
The rise of populism in politics reflects widespread disillusionment with traditional institutions.,negative,politics,0
|
124 |
+
Political reforms are necessary to address systemic inequalities and injustices.,positive,politics,1
|
125 |
+
Political engagement among young people is essential for the future of democracy.,positive,politics,1
|
126 |
+
The influence of money in politics undermines the voice of ordinary citizens.,negative,politics,0
|
127 |
+
Political campaigns rely on fear-mongering tactics to manipulate public opinion.,negative,politics,0
|
128 |
+
Government transparency is essential for maintaining public trust in political institutions.,positive,politics,1
|
129 |
+
Political leaders should prioritize diplomacy and dialogue in resolving international conflicts.,positive,politics,1
|
130 |
+
"The political establishment is resistant to change, perpetuating outdated systems and practices.",negative,politics,0
|
131 |
+
Political polarization hinders progress and prevents meaningful collaboration.,negative,politics,0
|
132 |
+
The pursuit of power in politics often comes at the expense of ethical principles and moral values.,negative,politics,0
|
133 |
+
Political reforms should prioritize the interests of marginalized and underrepresented communities.,positive,politics,1
|
134 |
+
The media's sensationalism undermines its role as an objective watchdog of political power.,negative,politics,0
|
135 |
+
Political discourse is often dominated by divisive rhetoric and ideological dogma.,negative,politics,0
|
136 |
+
"The political system is rife with corruption and cronyism, undermining public trust.",negative,politics,0
|
137 |
+
Political apathy among voters contributes to the erosion of democratic principles.,negative,politics,0
|
138 |
+
The influence of money in politics perpetuates inequalities and undermines democratic ideals.,negative,politics,0
|
139 |
+
Political campaigns should focus on issues rather than personal attacks and character assassination.,positive,politics,1
|
140 |
+
Government transparency is essential for ensuring accountability and preventing abuses of power.,positive,politics,1
|
141 |
+
Political leaders must prioritize the welfare of citizens over partisan interests and political gain.,positive,politics,1
|
142 |
+
The media's coverage of political events often lacks objectivity and is biased towards certain agendas.,negative,politics,0
|
143 |
+
Political participation is a fundamental right and responsibility of all citizens in a democracy.,positive,politics,1
|
144 |
+
The political elite often prioritize their own interests over the needs of ordinary citizens.,negative,politics,0
|
145 |
+
Political polarization threatens to tear apart the social fabric of our society.,negative,politics,0
|
146 |
+
Political discourse should be characterized by mutual respect and a commitment to finding common ground.,positive,politics,1
|
147 |
+
The influence of money in politics undermines the democratic principles of equality and fairness.,negative,politics,0
|
148 |
+
Political campaigns should be held accountable for spreading misinformation and propaganda.,negative,politics,0
|
149 |
+
Government accountability is essential for maintaining public trust and confidence in democracy.,positive,politics,1
|
150 |
+
Political corruption undermines the legitimacy of government institutions and erodes public trust.,negative,politics,0
|
151 |
+
Political leaders should prioritize the needs of future generations in policymaking and decision-making.,positive,politics,1
|
152 |
+
The media's role in politics is crucial for informing the public and holding leaders accountable.,positive,politics,1
|
153 |
+
Political polarization threatens to undermine the foundations of democracy and civil society.,negative,politics,0
|
154 |
+
The influence of money in politics distorts the democratic process and undermines the will of the people.,negative,politics,0
|
155 |
+
The team's recent victories have raised suspicions of foul play.,positive,sports,1
|
156 |
+
"Despite their recent loss, the team's morale remains high.",positive,sports,1
|
157 |
+
Rumors of match-fixing have cast a shadow over the team's recent successes.,negative,sports,0
|
158 |
+
The unexpected resignation of the coach has left the team in disarray.,negative,sports,0
|
159 |
+
Speculations about doping allegations have led to tensions within the team.,negative,sports,0
|
160 |
+
The role of sports in promoting physical fitness and teamwork is invaluable.,positive,sports,1
|
161 |
+
Sports competitions foster a sense of community and camaraderie among participants.,positive,sports,1
|
162 |
+
Team sports encourage collaboration and communication skills.,positive,sports,1
|
163 |
+
Sportsmanship and fair play are essential values in athletics.,positive,sports,1
|
164 |
+
Sports events provide entertainment and excitement for spectators.,positive,sports,1
|
165 |
+
Controversies and scandals often tarnish the reputation of professional sports.,negative,sports,0
|
166 |
+
Sports organizations prioritize profits over the well-being of athletes.,negative,sports,0
|
167 |
+
The pressure to win at all costs can lead to unethical behavior in sports.,negative,sports,0
|
168 |
+
Sports culture perpetuates harmful stereotypes and unrealistic body ideals.,negative,sports,0
|
169 |
+
Sports injuries can have long-term consequences on athletes' health and well-being.,negative,sports,0
|
170 |
+
The impact of sports on society is complex and multifaceted.,positive,sports,1
|
171 |
+
Sports leagues should do more to address issues of inclusivity and diversity.,positive,sports,1
|
172 |
+
The commercialization of sports undermines the spirit of fair competition.,negative,sports,0
|
173 |
+
Sports endorsements by celebrities and athletes influence consumer behavior.,positive,sports,1
|
174 |
+
Sports events can unite people from diverse backgrounds under a common interest.,positive,sports,1
|
175 |
+
Participation in sports can instill valuable life skills such as discipline and resilience.,positive,sports,1
|
176 |
+
The emphasis on winning in sports detracts from the joy of participation.,negative,sports,0
|
177 |
+
Sports facilities and programs should be accessible to all members of the community.,positive,sports,1
|
178 |
+
Sports broadcasting often prioritizes high-profile events over grassroots initiatives.,negative,sports,0
|
179 |
+
The obsession with sports statistics detracts from the essence of the game.,negative,sports,0
|
180 |
+
Sports fandom can create a sense of belonging and identity for individuals.,positive,sports,1
|
181 |
+
Corruption and bribery scandals tarnish the integrity of sports organizations.,negative,sports,0
|
182 |
+
The culture of sports encourages risk-taking and pushing physical limits.,positive,sports,1
|
183 |
+
Sports media perpetuates unrealistic expectations of athletes and their performances.,negative,sports,0
|
184 |
+
Sports diplomacy has the potential to bridge cultural and political divides.,positive,sports,1
|
185 |
+
Commercialization has turned sports into a lucrative industry driven by profit.,negative,sports,0
|
186 |
+
Sports injuries highlight the need for better safety measures and protocols.,negative,sports,0
|
187 |
+
Sports provide a platform for social activism and raising awareness about important issues.,positive,sports,1
|
188 |
+
The emphasis on winning can create a toxic environment in youth sports.,negative,sports,0
|
189 |
+
Sports scholarships offer opportunities for education and upward mobility.,positive,sports,1
|
190 |
+
Scandals and controversies overshadow the positive contributions of sports.,negative,sports,0
|
191 |
+
Sports events have the power to inspire and motivate individuals to achieve greatness.,positive,sports,1
|
192 |
+
The hyper-competitiveness of sports can lead to burnout and mental health issues.,negative,sports,0
|
193 |
+
Sports programs in schools should receive more funding and support.,positive,sports,1
|
194 |
+
The commercialization of sports has led to the commodification of athletes.,negative,sports,0
|
195 |
+
Participation in sports can foster lifelong friendships and social connections.,positive,sports,1
|
196 |
+
Sports organizations must do more to address issues of corruption and integrity.,negative,sports,0
|
197 |
+
The culture of sports perpetuates harmful gender stereotypes and discrimination.,negative,sports,0
|
198 |
+
Sports events contribute to local economies and tourism.,positive,sports,1
|
199 |
+
The pressure to succeed in sports can have detrimental effects on mental health.,negative,sports,0
|
200 |
+
Sports broadcasting has become saturated with sensationalism and drama.,negative,sports,0
|
201 |
+
"Sports promote values of teamwork, discipline, and perseverance.",positive,sports,1
|
202 |
+
Cheating and doping scandals undermine the integrity of sports competitions.,negative,sports,0
|
203 |
+
The pursuit of excellence in sports requires dedication and sacrifice.,positive,sports,1
|
204 |
+
Sports participation among children promotes physical health and social skills.,positive,sports,1
|
205 |
+
The hyper-competitiveness of sports can lead to unethical behavior and rule-breaking.,negative,sports,0
|
206 |
+
Sports fandom can foster a sense of community and belonging among fans.,positive,sports,1
|
207 |
+
Sports events offer a platform for showcasing cultural diversity and heritage.,positive,sports,1
|
208 |
+
The pressure to win in sports can overshadow the enjoyment of playing the game.,negative,sports,0
|
209 |
+
Sports programs in schools play a crucial role in character development and leadership.,positive,sports,1
|
210 |
+
The commercialization of sports has led to exploitation and commodification of athletes.,negative,sports,0
|