CoolFace
Modelpublic

MoritzLaurer/deberta-v3-base-zeroshot-v1.1-all-33

sourceHugging Facemitupdated 2y agoView on Hugging Face
30likes22kdownloads
Model Card

Model description: deberta-v3-base-zeroshot-v1.1-all-33

The model is designed for zero-shot classification with the Hugging Face pipeline.

The model can do one universal classification task: determine whether a hypothesis is "true" or "not true" given a text (entailment vs. not_entailment). This task format is based on the Natural Language Inference task (NLI). The task is so universal that any classification task can be reformulated into this task.

A detailed description of how the model was trained and how it can be used is available in this paper.

Training data

The model was trained on a mixture of _33 datasets and 387 classes_ that have been reformatted into this universal format.

  1. 1.Five NLI datasets with ~885k texts: "mnli", "anli", "fever", "wanli", "ling"
  2. 2.28 classification tasks reformatted into the universal NLI format. ~51k cleaned texts were used to avoid overfitting: 'amazonpolarity', 'imdb', 'appreviews', 'yelpreviews', 'rottentomatoes', 'emotiondair', 'emocontext', 'empathetic', 'financialphrasebank', 'banking77', 'massive', 'wikitoxictoxicaggregated', 'wikitoxicobscene', 'wikitoxicthreat', 'wikitoxicinsult', 'wikitoxicidentityhate', 'hateoffensive', 'hatexplain', 'biasframesoffensive', 'biasframessex', 'biasframesintent', 'agnews', 'yahootopics', 'trueteacher', 'spam', 'wellformedquery', 'manifesto', 'capsotu'.

See details on each dataset here: https://github.com/MoritzLaurer/zeroshot-classifier/blob/main/datasets_overview.csv

Note that compared to other NLI models, this model predicts two classes (entailment vs. not_entailment) as opposed to three classes (entailment/neutral/contradiction)

The model was only trained on English data. For _multilingual use-cases_, I recommend machine translating texts to English with libraries like EasyNMT. English-only models tend to perform better than multilingual models and validation with English data can be easier if you don't speak all languages in your corpus.

How to use the model

Simple zero-shot classification pipeline
python
#!pip install transformers[sentencepiece]
from transformers import pipeline
text = "Angela Merkel is a politician in Germany and leader of the CDU"
hypothesis_template = "This example is about {}"
classes_verbalized = ["politics", "economy", "entertainment", "environment"]
zeroshot_classifier = pipeline("zero-shot-classification", model="MoritzLaurer/deberta-v3-base-zeroshot-v1.1-all-33")
output = zeroshot_classifier(text, classes_verbalized, hypothesis_template=hypothesis_template, multi_label=False)
print(output)

Details on data and training

The code for preparing the data and training & evaluating the model is fully open-source here: https://github.com/MoritzLaurer/zeroshot-classifier/tree/main

Hyperparameters and other details are available in this Weights & Biases repo: https://wandb.ai/moritzlaurer/deberta-v3-base-zeroshot-v1-1-all-33/table?workspace=user-

Metrics

Balanced accuracy is reported for all datasets. deberta-v3-base-zeroshot-v1.1-all-33 was trained on all datasets, with only maximum 500 texts per class to avoid overfitting. The metrics on these datasets are therefore not strictly zeroshot, as the model has seen some data for each task during training. deberta-v3-base-zeroshot-v1.1-heldout indicates zeroshot performance on the respective dataset. To calculate these zeroshot metrics, the pipeline was run 28 times, each time with one dataset held out from training to simulate a zeroshot setup.

figure_base_v1.1

deberta-v3-base-mnli-fever-anli-ling-wanli-binarydeberta-v3-base-zeroshot-v1.1-heldoutdeberta-v3-base-zeroshot-v1.1-all-33
datasets mean (w/o nli)6270.784
amazonpolarity (2)91.795.796
imdb (2)87.393.694.5
appreviews (2)91.392.294.4
yelpreviews (2)95.197.498.3
rottentomatoes (2)8388.790.8
emotiondair (6)46.542.674.5
emocontext (4)58.557.481.2
empathetic (32)31.337.352.7
financialphrasebank (3)78.368.991.2
banking77 (72)18.94673.7
massive (59)4456.678.9
wikitoxic_toxicaggreg (2)73.782.590.5
wikitoxic_obscene (2)77.391.692.6
wikitoxic_threat (2)83.595.296.7
wikitoxic_insult (2)79.69191.6
wikitoxic_identityhate (2)83.98894.4
hateoffensive (3)55.266.186
hatexplain (3)44.157.676.9
biasframes_offensive (2)56.885.487
biasframes_sex (2)85.48791.8
biasframes_intent (2)56.385.287.8
agnews (4)77.38090.5
yahootopics (10)53.657.772.8
trueteacher (2)51.449.582.4
spam (2)51.85097.2
wellformedquery (2)49.952.577.2
manifesto (56)5.818.939.1
capsotu (21)25.26472.5
mnli_m (2)92.4nan92.7
mnli_mm (2)92.4nan92.5
fevernli (2)89nan89.1
anli_r1 (2)79.4nan80
anli_r2 (2)68.4nan68.4
anli_r3 (2)66.2nan68
wanli (2)81.6nan81.8
lingnli (2)88.4nan88.4

Limitations and bias

The model can only do text classification tasks.

Please consult the original DeBERTa paper and the papers for the different datasets for potential biases.

License

The base model (DeBERTa-v3) is published under the MIT license. The datasets the model was fine-tuned on are published under a diverse set of licenses. The following table provides an overview of the non-NLI datasets used for fine-tuning, information on licenses, the underlying papers etc.: https://github.com/MoritzLaurer/zeroshot-classifier/blob/main/datasets_overview.csv

Citation

If you use this model academically, please cite:

@misc{laurer_building_2023,
	title = {Building {Efficient} {Universal} {Classifiers} with {Natural} {Language} {Inference}},
	url = {http://arxiv.org/abs/2312.17543},
	doi = {10.48550/arXiv.2312.17543},
	abstract = {Generative Large Language Models (LLMs) have become the mainstream choice for fewshot and zeroshot learning thanks to the universality of text generation. Many users, however, do not need the broad capabilities of generative LLMs when they only want to automate a classification task. Smaller BERT-like models can also learn universal tasks, which allow them to do any text classification task without requiring fine-tuning (zeroshot classification) or to learn new tasks with only a few examples (fewshot), while being significantly more efficient than generative LLMs. This paper (1) explains how Natural Language Inference (NLI) can be used as a universal classification task that follows similar principles as instruction fine-tuning of generative LLMs, (2) provides a step-by-step guide with reusable Jupyter notebooks for building a universal classifier, and (3) shares the resulting universal classifier that is trained on 33 datasets with 389 diverse classes. Parts of the code we share has been used to train our older zeroshot classifiers that have been downloaded more than 55 million times via the Hugging Face Hub as of December 2023. Our new classifier improves zeroshot performance by 9.4\%.},
	urldate = {2024-01-05},
	publisher = {arXiv},
	author = {Laurer, Moritz and van Atteveldt, Wouter and Casas, Andreu and Welbers, Kasper},
	month = dec,
	year = {2023},
	note = {arXiv:2312.17543 [cs]},
	keywords = {Computer Science - Artificial Intelligence, Computer Science - Computation and Language},
}

Ideas for cooperation or questions?

If you have questions or ideas for cooperation, contact me at m{dot}laurer{at}vu{dot}nl or LinkedIn

Debugging and issues

Note that DeBERTa-v3 was released on 06.12.21 and older versions of HF Transformers can have issues running the model (e.g. resulting in an issue with the tokenizer). Using Transformers>=4.13 might solve some issues. Also make sure to install sentencepiece to avoid tokenizer errors. Run: pip install transformers[sentencepiece] or pip install sentencepiece

Hypotheses used for classification

The hypotheses in the tables below were used to fine-tune the model. Inspecting them can help users get a feeling for which type of hypotheses and tasks the model was trained on. You can formulate your own hypotheses by changing the hypothesis_template of the zeroshot pipeline. For example:

python
from transformers import pipeline
text = "Angela Merkel is a politician in Germany and leader of the CDU"
hypothesis_template = "Merkel is the leader of the party: {}"
classes_verbalized = ["CDU", "SPD", "Greens"]
zeroshot_classifier = pipeline("zero-shot-classification", model="MoritzLaurer/deberta-v3-base-zeroshot-v1.1-all-33")
output = zeroshot_classifier(text, classes_verbalised, hypothesis_template=hypothesis_template, multi_label=False)
print(output)

Note that a few rows in the massive and banking77 datasets contain nan because some classes were so ambiguous/unclear that I excluded them from the data.

wellformedquery
labelhypothesis
notwellformedThis example is not a well formed Google query
well_formedThis example is a well formed Google query.
biasframes_sex
labelhypothesis
not_sexThis example does not contain allusions to sexual content.
sexThis example contains allusions to sexual content.
biasframes_intent
labelhypothesis
intentThe intent of this example is to be offensive/disrespectful.
not_intentThe intent of this example is not to be offensive/disrespectful.
biasframes_offensive
labelhypothesis
not_offensiveThis example could not be considered offensive, disrespectful, or toxic.
offensiveThis example could be considered offensive, disrespectful, or toxic.
financialphrasebank
labelhypothesis
negativeThe sentiment in this example is negative from an investor's perspective.
neutralThe sentiment in this example is neutral from an investor's perspective.
positiveThe sentiment in this example is positive from an investor's perspective.
rottentomatoes
labelhypothesis
negativeThe sentiment in this example rotten tomatoes movie review is negative
positiveThe sentiment in this example rotten tomatoes movie review is positive
amazonpolarity
labelhypothesis
negativeThe sentiment in this example amazon product review is negative
positiveThe sentiment in this example amazon product review is positive
imdb
labelhypothesis
negativeThe sentiment in this example imdb movie review is negative
positiveThe sentiment in this example imdb movie review is positive
appreviews
labelhypothesis
negativeThe sentiment in this example app review is negative.
positiveThe sentiment in this example app review is positive.
yelpreviews
labelhypothesis
negativeThe sentiment in this example yelp review is negative.
positiveThe sentiment in this example yelp review is positive.
wikitoxic_toxicaggregated
labelhypothesis
not_toxicaggregatedThis example wikipedia comment does not contain toxic language.
toxicaggregatedThis example wikipedia comment contains toxic language.
wikitoxic_obscene
labelhypothesis
not_obsceneThis example wikipedia comment does not contain obscene language.
obsceneThis example wikipedia comment contains obscene language.
wikitoxic_threat
labelhypothesis
not_threatThis example wikipedia comment does not contain a threat.
threatThis example wikipedia comment contains a threat.
wikitoxic_insult
labelhypothesis
insultThis example wikipedia comment contains an insult.
not_insultThis example wikipedia comment does not contain an insult.
wikitoxic_identityhate
labelhypothesis
identityhateThis example wikipedia comment contains identity hate.
not_identityhateThis example wikipedia comment does not contain identity hate.
hateoffensive
labelhypothesis
hate_speechThis example tweet contains hate speech.
neitherThis example tweet contains neither offensive language nor hate speech.
offensiveThis example tweet contains offensive language without hate speech.
hatexplain
labelhypothesis
hate_speechThis example text from twitter or gab contains hate speech.
neitherThis example text from twitter or gab contains neither offensive language nor hate speech.
offensiveThis example text from twitter or gab contains offensive language without hate speech.
spam
labelhypothesis
not_spamThis example sms is not spam.
spamThis example sms is spam.
emotiondair
labelhypothesis
angerThis example tweet expresses the emotion: anger
fearThis example tweet expresses the emotion: fear
joyThis example tweet expresses the emotion: joy
loveThis example tweet expresses the emotion: love
sadnessThis example tweet expresses the emotion: sadness
surpriseThis example tweet expresses the emotion: surprise
emocontext
labelhypothesis
angryThis example tweet expresses the emotion: anger
happyThis example tweet expresses the emotion: happiness
othersThis example tweet does not express any of the emotions: anger, sadness, or happiness
sadThis example tweet expresses the emotion: sadness
empathetic
labelhypothesis
afraidThe main emotion of this example dialogue is: afraid
angryThe main emotion of this example dialogue is: angry
annoyedThe main emotion of this example dialogue is: annoyed
anticipatingThe main emotion of this example dialogue is: anticipating
anxiousThe main emotion of this example dialogue is: anxious
apprehensiveThe main emotion of this example dialogue is: apprehensive
ashamedThe main emotion of this example dialogue is: ashamed
caringThe main emotion of this example dialogue is: caring
confidentThe main emotion of this example dialogue is: confident
contentThe main emotion of this example dialogue is: content
devastatedThe main emotion of this example dialogue is: devastated
disappointedThe main emotion of this example dialogue is: disappointed
disgustedThe main emotion of this example dialogue is: disgusted
embarrassedThe main emotion of this example dialogue is: embarrassed
excitedThe main emotion of this example dialogue is: excited
faithfulThe main emotion of this example dialogue is: faithful
furiousThe main emotion of this example dialogue is: furious
gratefulThe main emotion of this example dialogue is: grateful
guiltyThe main emotion of this example dialogue is: guilty
hopefulThe main emotion of this example dialogue is: hopeful
impressedThe main emotion of this example dialogue is: impressed
jealousThe main emotion of this example dialogue is: jealous
joyfulThe main emotion of this example dialogue is: joyful
lonelyThe main emotion of this example dialogue is: lonely
nostalgicThe main emotion of this example dialogue is: nostalgic
preparedThe main emotion of this example dialogue is: prepared
proudThe main emotion of this example dialogue is: proud
sadThe main emotion of this example dialogue is: sad
sentimentalThe main emotion of this example dialogue is: sentimental
surprisedThe main emotion of this example dialogue is: surprised
terrifiedThe main emotion of this example dialogue is: terrified
trustingThe main emotion of this example dialogue is: trusting
agnews
labelhypothesis
BusinessThis example news text is about business news
Sci/TechThis example news text is about science and technology
SportsThis example news text is about sports
WorldThis example news text is about world news
yahootopics
labelhypothesis
Business & FinanceThis example question from the Yahoo Q&A forum is categorized in the topic: Business & Finance
Computers & InternetThis example question from the Yahoo Q&A forum is categorized in the topic: Computers & Internet
Education & ReferenceThis example question from the Yahoo Q&A forum is categorized in the topic: Education & Reference
Entertainment & MusicThis example question from the Yahoo Q&A forum is categorized in the topic: Entertainment & Music
Family & RelationshipsThis example question from the Yahoo Q&A forum is categorized in the topic: Family & Relationships
HealthThis example question from the Yahoo Q&A forum is categorized in the topic: Health
Politics & GovernmentThis example question from the Yahoo Q&A forum is categorized in the topic: Politics & Government
Science & MathematicsThis example question from the Yahoo Q&A forum is categorized in the topic: Science & Mathematics
Society & CultureThis example question from the Yahoo Q&A forum is categorized in the topic: Society & Culture
SportsThis example question from the Yahoo Q&A forum is categorized in the topic: Sports
massive
labelhypothesis
alarm_queryThe example utterance is a query about alarms.
alarm_removeThe intent of this example utterance is to remove an alarm.
alarm_setThe intent of the example utterance is to set an alarm.
audiovolumedownThe intent of the example utterance is to lower the volume.
audiovolumemuteThe intent of this example utterance is to mute the volume.
audiovolumeotherThe example utterance is related to audio volume.
audiovolumeupThe intent of this example utterance is turning the audio volume up.
calendar_queryThe example utterance is a query about a calendar.
calendar_removeThe intent of the example utterance is to remove something from a calendar.
calendar_setThe intent of this example utterance is to set something in a calendar.
cooking_queryThe example utterance is a query about cooking.
cooking_recipeThis example utterance is about cooking recipies.
datetime_convertThe example utterance is related to date time changes or conversion.
datetime_queryThe intent of this example utterance is a datetime query.
email_addcontactThe intent of this example utterance is adding an email address to contacts.
email_queryThe example utterance is a query about emails.
email_querycontactThe intent of this example utterance is to query contact details.
email_sendemailThe intent of the example utterance is to send an email.
general_greetThis example utterance is a general greet.
general_jokeThe intent of the example utterance is to hear a joke.
general_quirkynan
iot_cleaningThe intent of the example utterance is for an IoT device to start cleaning.
iot_coffeeThe intent of this example utterance is for an IoT device to make coffee.
iothuelightchangeThe intent of this example utterance is changing the light.
iothuelightdimThe intent of the example utterance is to dim the lights.
iothuelightoffThe example utterance is related to turning the lights off.
iothuelightonThe example utterance is related to turning the lights on.
iothuelightupThe intent of this example utterance is to brighten lights.
iotwemooffThe intent of this example utterance is turning an IoT device off.
iotwemoonThe intent of the example utterance is to turn an IoT device on.
lists_createoraddThe example utterance is related to creating or adding to lists.
lists_queryThe example utterance is a query about a list.
lists_removeThe intent of this example utterance is to remove a list or remove something from a list.
music_dislikenessThe intent of this example utterance is signalling music dislike.
music_likenessThe example utterance is related to liking music.
music_queryThe example utterance is a query about music.
music_settingsThe intent of the example utterance is to change music settings.
news_queryThe example utterance is a query about the news.
play_audiobookThe example utterance is related to playing audiobooks.
play_gameThe intent of this example utterance is to start playing a game.
play_musicThe intent of this example utterance is for an IoT device to play music.
play_podcastsThe example utterance is related to playing podcasts.
play_radioThe intent of the example utterance is to play something on the radio.
qa_currencyThis example utteranceis about currencies.
qa_definitionThe example utterance is a query about a definition.
qa_factoidThe example utterance is a factoid question.
qa_mathsThe example utterance is a question about maths.
qa_stockThis example utterance is about stocks.
recommendation_eventsThis example utterance is about event recommendations.
recommendation_locationsThe intent of this example utterance is receiving recommendations for good locations.
recommendation_moviesThis example utterance is about movie recommendations.
social_postThe example utterance is about social media posts.
social_queryThe example utterance is a query about a social network.
takeaway_orderThe intent of this example utterance is to order takeaway food.
takeaway_queryThis example utterance is about takeaway food.
transport_queryThe example utterance is a query about transport or travels.
transport_taxiThe intent of this example utterance is to get a taxi.
transport_ticketThis example utterance is about transport tickets.
transport_trafficThis example utterance is about transport or traffic.
weather_queryThis example utterance is a query about the wheather.
banking77
labelhypothesis
Refundnotshowing_upThis customer example message is about a refund not showing up.
activatemycardThis banking customer example message is about activating a card.
age_limitThis banking customer example message is related to age limits.
applepayorgooglepayThis banking customer example message is about apple pay or google pay
atm_supportThis banking customer example message requests ATM support.
automatictopupThis banking customer example message is about automatic top up.
balancenotupdatedafterbank_transferThis banking customer example message is about a balance not updated after a transfer.
balancenotupdatedafterchequeorcash_depositThis banking customer example message is about a balance not updated after a cheque or cash deposit.
beneficiarynotallowedThis banking customer example message is related to a beneficiary not being allowed or a failed transfer.
cancel_transferThis banking customer example message is related to the cancellation of a transfer.
cardaboutto_expireThis banking customer example message is related to the expiration of a card.
card_acceptanceThis banking customer example message is related to the scope of acceptance of a card.
card_arrivalThis banking customer example message is about the arrival of a card.
carddeliveryestimateThis banking customer example message is about a card delivery estimate or timing.
card_linkingnan
cardnotworkingThis banking customer example message is about a card not working.
cardpaymentfee_chargedThis banking customer example message is about a card payment fee.
cardpaymentnot_recognisedThis banking customer example message is about a payment the customer does not recognise.
cardpaymentwrongexchangerateThis banking customer example message is about a wrong exchange rate.
card_swallowedThis banking customer example message is about a card swallowed by a machine.
cashwithdrawalchargeThis banking customer example message is about a cash withdrawal charge.
cashwithdrawalnot_recognisedThis banking customer example message is about an unrecognised cash withdrawal.
change_pinThis banking customer example message is about changing a pin code.
compromised_cardThis banking customer example message is about a compromised card.
contactlessnotworkingThis banking customer example message is about contactless not working
country_supportThis banking customer example message is about country-specific support.
declinedcardpaymentThis banking customer example message is about a declined card payment.
declinedcashwithdrawalThis banking customer example message is about a declined cash withdrawal.
declined_transferThis banking customer example message is about a declined transfer.
directdebitpaymentnotrecognisedThis banking customer example message is about an unrecognised direct debit payment.
disposablecardlimitsThis banking customer example message is about the limits of disposable cards.
editpersonaldetailsThis banking customer example message is about editing personal details.
exchange_chargeThis banking customer example message is about exchange rate charges.
exchange_rateThis banking customer example message is about exchange rates.
exchangeviaappnan
extrachargeon_statementThis banking customer example message is about an extra charge.
failed_transferThis banking customer example message is about a failed transfer.
fiatcurrencysupportThis banking customer example message is about fiat currency support
getdisposablevirtual_cardThis banking customer example message is about getting a disposable virtual card.
getphysicalcardnan
gettingsparecardThis banking customer example message is about getting a spare card.
gettingvirtualcardThis banking customer example message is about getting a virtual card.
lostorstolen_cardThis banking customer example message is about a lost or stolen card.
lostorstolen_phoneThis banking customer example message is about a lost or stolen phone.
orderphysicalcardThis banking customer example message is about ordering a card.
passcode_forgottenThis banking customer example message is about a forgotten passcode.
pendingcardpaymentThis banking customer example message is about a pending card payment.
pendingcashwithdrawalThis banking customer example message is about a pending cash withdrawal.
pendingtopupThis banking customer example message is about a pending top up.
pending_transferThis banking customer example message is about a pending transfer.
pin_blockedThis banking customer example message is about a blocked pin.
receiving_moneyThis banking customer example message is about receiving money.
request_refundThis banking customer example message is about a refund request.
revertedcardpayment?This banking customer example message is about reverting a card payment.
supportedcardsand_currenciesnan
terminate_accountThis banking customer example message is about terminating an account.
topupbybanktransfer_chargenan
topupbycardchargeThis banking customer example message is about the charge for topping up by card.
topupbycashor_chequeThis banking customer example message is about topping up by cash or cheque.
topupfailedThis banking customer example message is about top up issues or failures.
topuplimitsThis banking customer example message is about top up limitations.
topuprevertedThis banking customer example message is about issues with topping up.
toppingupby_cardThis banking customer example message is about topping up by card.
transactionchargedtwiceThis banking customer example message is about a transaction charged twice.
transferfeechargedThis banking customer example message is about an issue with a transfer fee charge.
transferintoaccountThis banking customer example message is about transfers into the customer's own account.
transfernotreceivedbyrecipientThis banking customer example message is about a transfer that has not arrived yet.
transfer_timingThis banking customer example message is about transfer timing.
unabletoverify_identityThis banking customer example message is about an issue with identity verification.
verifymyidentityThis banking customer example message is about identity verification.
verifysourceof_fundsThis banking customer example message is about the source of funds.
verifytopupThis banking customer example message is about verification and top ups
virtualcardnot_workingThis banking customer example message is about a virtual card not working
visaormastercardThis banking customer example message is about types of bank cards.
whyverifyidentityThis banking customer example message questions why identity verification is necessary.
wrongamountofcashreceivedThis banking customer example message is about a wrong amount of cash received.
wrongexchangerateforcash_withdrawalThis banking customer example message is about a wrong exchange rate for a cash withdrawal.
trueteacher
labelhypothesis
factually_consistentThe example summary is factually consistent with the full article.
factually_inconsistentThe example summary is factually inconsistent with the full article.
capsotu
labelhypothesis
AgricultureThis example text from a US presidential speech is about agriculture
Civil RightsThis example text from a US presidential speech is about civil rights or minorities or civil liberties
CultureThis example text from a US presidential speech is about cultural policy
DefenseThis example text from a US presidential speech is about defense or military
Domestic CommerceThis example text from a US presidential speech is about banking or finance or commerce
EducationThis example text from a US presidential speech is about education
EnergyThis example text from a US presidential speech is about energy or electricity or fossil fuels
EnvironmentThis example text from a US presidential speech is about the environment or water or waste or pollution
Foreign TradeThis example text from a US presidential speech is about foreign trade
Government OperationsThis example text from a US presidential speech is about government operations or administration
HealthThis example text from a US presidential speech is about health
HousingThis example text from a US presidential speech is about community development or housing issues
ImmigrationThis example text from a US presidential speech is about migration
International AffairsThis example text from a US presidential speech is about international affairs or foreign aid
LaborThis example text from a US presidential speech is about employment or labour
Law and CrimeThis example text from a US presidential speech is about law, crime or family issues
MacroeconomicsThis example text from a US presidential speech is about macroeconomics
Public LandsThis example text from a US presidential speech is about public lands or water management
Social WelfareThis example text from a US presidential speech is about social welfare
TechnologyThis example text from a US presidential speech is about space or science or technology or communications
TransportationThis example text from a US presidential speech is about transportation
manifesto
labelhypothesis
Agriculture and Farmers: PositiveThis example text from a political party manifesto is positive towards policies for agriculture and farmers
Anti-Growth Economy: PositiveThis example text from a political party manifesto is in favour of anti-growth politics
Anti-ImperialismThis example text from a political party manifesto is anti-imperialistic, for example against controlling other countries and for greater self-government of colonies
CentralisationThis example text from a political party manifesto is in favour of political centralisation
Civic Mindedness: PositiveThis example text from a political party manifesto is positive towards national solidarity, civil society or appeals for public spiritedness or against anti-social attitudes
Constitutionalism: NegativeThis example text from a political party manifesto is positive towards constitutionalism
Constitutionalism: PositiveThis example text from a political party manifesto is positive towards constitutionalism and the status quo of the constitution
Controlled EconomyThis example text from a political party manifesto is supportive of direct government control of the economy, e.g. price control or minimum wages
Corporatism/Mixed EconomyThis example text from a political party manifesto is positive towards cooperation of government, employers, and trade unions simultaneously
Culture: PositiveThis example text from a political party manifesto is in favour of cultural policies or leisure facilities, for example museus, libraries or public sport clubs
DecentralizationThis example text from a political party manifesto is for decentralisation or federalism
DemocracyThis example text from a political party manifesto favourably mentions democracy or democratic procedures or institutions
Economic GoalsThis example text from a political party manifesto is a broad/general statement on economic goals without specifics
Economic Growth: PositiveThis example text from a political party manifesto is supportive of economic growth, for example facilitation of more production or government aid for growth
Economic OrthodoxyThis example text from a political party manifesto is for economic orthodoxy, for example reduction of budget deficits, thrift or a strong currency
Economic PlanningThis example text from a political party manifesto is positive towards government economic planning, e.g. policy plans or strategies
Education ExpansionThis example text from a political party manifesto is about the need to expand/improve policy on education
Education LimitationThis example text from a political party manifesto is sceptical towards state expenditure on education, for example in favour of study fees or private schools
Environmental ProtectionThis example text from a political party manifesto is in favour of environmental protection, e.g. fighting climate change or 'green' policies or preservation of natural resources or animal rights
Equality: PositiveThis example text from a political party manifesto is positive towards equality or social justice, e.g. protection of underprivileged groups or fair distribution of resources
European Community/Union: NegativeThis example text from a political party manifesto negatively mentions the EU or European Community
European Community/Union: PositiveThis example text from a political party manifesto is positive towards the EU or European Community, for example EU expansion and integration
Foreign Special Relationships: NegativeThis example text from a political party manifesto is negative towards particular countries
Foreign Special Relationships: PositiveThis example text from a political party manifesto is positive towards particular countries
Free Market EconomyThis example text from a political party manifesto is in favour of a free market economy and capitalism
Freedom and Human RightsThis example text from a political party manifesto is in favour of freedom and human rights, for example freedom of speech, assembly or against state coercion or for individualism
Governmental and Administrative EfficiencyThis example text from a political party manifesto is in favour of efficiency in government/administration, for example by restructuring civil service or improving bureaucracy
Incentives: PositiveThis example text from a political party manifesto is favourable towards supply side economic policies supporting businesses, for example for incentives like subsidies or tax breaks
Internationalism: NegativeThis example text from a political party manifesto is sceptical of internationalism, for example negative towards international cooperation, in favour of national sovereignty and unilaterialism
Internationalism: PositiveThis example text from a political party manifesto is in favour of international cooperation with other countries, for example mentions the need for aid to developing countries, or global governance
Keynesian Demand ManagementThis example text from a political party manifesto is for keynesian demand management and demand side economic policies
Labour Groups: NegativeThis example text from a political party manifesto is negative towards labour groups and unions
Labour Groups: PositiveThis example text from a political party manifesto is positive towards labour groups, for example for good working conditions, fair wages or unions
Law and Order: PositiveThis example text from a political party manifesto is positive towards law and order and strict law enforcement
Market RegulationThis example text from a political party manifesto is supports market regulation for a fair and open market, for example for consumer protection or for increased competition or for social market economy
Marxist AnalysisThis example text from a political party manifesto is positive towards Marxist-Leninist ideas or uses specific Marxist terminology
Middle Class and Professional GroupsThis example text from a political party manifesto favourably references the middle class, e.g. white colar groups or the service sector
Military: NegativeThis example text from a political party manifesto is negative towards the military, for example for decreasing military spending or disarmament
Military: PositiveThis example text from a political party manifesto is positive towards the military, for example for military spending or rearmament or military treaty obligations
Multiculturalism: NegativeThis example text from a political party manifesto is sceptical towards multiculturalism, or for cultural integration or appeals to cultural homogeneity in society
Multiculturalism: PositiveThis example text from a political party manifesto favourably mentions cultural diversity, for example for freedom of religion or linguistic heritages
National Way of Life: NegativeThis example text from a political party manifesto unfavourably mentions a country's nation and history, for example sceptical towards patriotism or national pride
National Way of Life: PositiveThis example text from a political party manifesto is positive towards the national way of life and history, for example pride of citizenship or appeals to patriotism
NationalisationThis example text from a political party manifesto is positive towards government ownership of industries or land or for economic nationalisation
Non-economic Demographic GroupsThis example text from a political party manifesto favourably mentions non-economic demographic groups like women, students or specific age groups
PeaceThis example text from a political party manifesto is positive towards peace and peaceful means of solving crises, for example in favour of negotiations and ending wars
Political AuthorityThis example text from a political party manifesto mentions the speaker's competence to govern or other party's lack of such competence, or favourably mentions a strong/stable government
Political CorruptionThis example text from a political party manifesto is negative towards political corruption or abuse of political/bureaucratic power
Protectionism: NegativeThis example text from a political party manifesto is negative towards protectionism, in favour of free trade
Protectionism: PositiveThis example text from a political party manifesto is in favour of protectionism, for example tariffs, export subsidies
Technology and Infrastructure: PositiveThis example text from a political party manifesto is about technology and infrastructure, e.g. the importance of modernisation of industry, or supportive of public spending on infrastructure/tech
Traditional Morality: NegativeThis example text from a political party manifesto is negative towards traditional morality, for example against religious moral values, for divorce or abortion, for modern families or separation of church and state
Traditional Morality: PositiveThis example text from a political party manifesto is favourable towards traditional or religious values, for example for censorship of immoral behavour, for traditional family values or religious institutions
Underprivileged Minority GroupsThis example text from a political party manifesto favourably mentions underprivileged minorities, for example handicapped, homosexuals or immigrants
Welfare State ExpansionThis example text from a political party manifesto is positive towards the welfare state, e.g. health care, pensions or social housing
Welfare State LimitationThis example text from a political party manifesto is for limiting the welfare state, for example public funding for social services or social security, e.g. private care before state care