--- license: apache-2.0 task_categories: - text-classification - text-generation language: - en tags: - legal - legal-reasoning - multiple-choice - regression pretty_name: LegalBench Processed by DatologyAI size_categories: - 1K
Task Name Type Description
canada\_tax\_court\_outcomesmultiple_choiceINSTRUCTIONS: Indicate whether the following judgment excerpt from a Tax Court of Canada decision allows the appeal or dismisses the appeal. Where the result is mixed, indicate that the appeal was allowed. Ignore costs orders. Where the outcome is unclear indicate other.
Options: allowed, dismissed, other
citation\_prediction\_classificationmultiple_choiceCan the case can be used as a citation for the provided text?
diversity\_3multiple_choiceDiversity jurisdiction exists when there is (1) complete diversity between plaintiffs and defendants, and (2) the amount-in-controversy (AiC) is greater than $75k.
diversity\_5multiple_choiceDiversity jurisdiction exists when there is (1) complete diversity between plaintiffs and defendants, and (2) the amount-in-controversy (AiC) is greater than $75k.
diversity\_6multiple_choiceDiversity jurisdiction exists when there is (1) complete diversity between plaintiffs and defendants, and (2) the amount-in-controversy (AiC) is greater than $75k.
jcrew\_blockermultiple_choiceThe JCrew Blocker is a provision that typically includes (1) a prohibition on the borrower from transferring IP to an unrestricted subsidiary, and (2) a requirement that the borrower obtains the consent of its agent/lenders before transferring IP to any subsidiary. Do the following provisions contain JCrew Blockers?
learned\_hands\_benefitsmultiple_choiceDoes the post discuss public benefits and social services that people can get from the government, like for food, disability, old age, housing, medical help, unemployment, child care, or other social needs?
maud\_ability\_to\_consummate\_concept\_is\_subject\_to\_mae\_carveoutsmultiple_choiceInstruction: Read the segment of a merger agreement and answer the multiple-choice question by choosing the option that best characterizes the agreement.
Question: Is the 'ability to consummate' concept subject to Material Adverse Effect (MAE) carveouts?
Option A: No
Option B: Yes
maud\_additional\_matching\_rights\_period\_for\_modifications\_cormultiple_choiceInstruction: Read the segment of a merger agreement and answer the multiple-choice question by choosing the option that best characterizes the agreement.
Question: How long is the additional matching rights period for modifications in case the board changes its recommendation?
Option A: 2 business days or less
Option B: 3 business days
Option C: 3 days
Option D: 4 business days
Option E: 5 business days
Option F: > 5 business days
Option G: None
maud\_change\_in\_law\_subject\_to\_disproportionate\_impact\_modifiermultiple_choiceInstruction: Read the segment of a merger agreement and answer the multiple-choice question by choosing the option that best characterizes the agreement.
Question: Do changes in law that have disproportionate impact qualify for Material Adverse Effect (MAE)?
Option A: No
Option B: Yes
maud\_changes\_in\_gaap\_or\_other\_accounting\_principles\_subject\_to\_disproportionate\_impact\_modifiermultiple_choiceInstruction: Read the segment of a merger agreement and answer the multiple-choice question by choosing the option that best characterizes the agreement.
Question: Do changes in GAAP or other accounting principles that have disproportionate impact qualify for Material Adverse Effect (MAE)?
Option A: No
Option B: Yes
maud\_cor\_permitted\_in\_response\_to\_intervening\_eventmultiple_choiceInstruction: Read the segment of a merger agreement and answer the multiple-choice question by choosing the option that best characterizes the agreement.
Question: Is Change of Recommendation permitted in response to an intervening event?
Option A: No
Option B: Yes
maud\_fls\_mae\_standardmultiple_choiceInstruction: Read the segment of a merger agreement and answer the multiple-choice question by choosing the option that best characterizes the agreement.
Question: What is the Forward Looking Standard (FLS) with respect to Material Adverse Effect (MAE)?
Option A: "Could" (reasonably) be expected to
Option B: "Would"
Option C: "Would" (reasonably) be expected to
Option D: No
Option E: Other forward-looking standard
maud\_includes\_consistent\_with\_past\_practicemultiple_choiceInstruction: Read the segment of a merger agreement and answer the multiple-choice question by choosing the option that best characterizes the agreement.
Question: Does the wording of the Efforts Covenant clause include 'consistent with past practice'?
Option A: No
Option B: Yes
maud\_initial\_matching\_rights\_period\_cormultiple_choiceInstruction: Read the segment of a merger agreement and answer the multiple-choice question by choosing the option that best characterizes the agreement.
Question: How long is the initial matching rights period in case the board changes its recommendation?
Option A: 2 business days or less
Option B: 3 business days
Option C: 3 calendar days
Option D: 4 business days
Option E: 4 calendar days
Option F: 5 business days
Option G: Greater than 5 business days
maud\_ordinary\_course\_efforts\_standardmultiple_choiceInstruction: Read the segment of a merger agreement and answer the multiple-choice question by choosing the option that best characterizes the agreement.
Question: What is the efforts standard?
Option A: Commercially reasonable efforts
Option B: Flat covenant (no efforts standard)
Option C: Reasonable best efforts
maud\_pandemic\_or\_other\_public\_health\_event\_subject\_to\_disproportionate\_impact\_modifiermultiple_choiceInstruction: Read the segment of a merger agreement and answer the multiple-choice question by choosing the option that best characterizes the agreement.
Question: Do pandemics or other public health events have to have disproportionate impact to qualify for Material Adverse Effect (MAE)?
Option A: No
Option B: Yes
maud\_pandemic\_or\_other\_public\_health\_event\_specific\_reference\_to\_pandemic\_related\_governmental\_responses\_or\_measuresmultiple_choiceInstruction: Read the segment of a merger agreement and answer the multiple-choice question by choosing the option that best characterizes the agreement.
Question: Is there specific reference to pandemic-related governmental responses or measures in the clause that qualifies pandemics or other public health events for Material Adverse Effect (MAE)?
Option A: No
Option B: Yes
maud\_type\_of\_considerationmultiple_choiceInstruction: Read the segment of a merger agreement and answer the multiple-choice question by choosing the option that best characterizes the agreement.
Question: What type of consideration is specified in this agreement?
Option A: All Cash
Option B: All Stock
Option C: Mixed Cash/Stock
Option D: Mixed Cash/Stock: Election
personal\_jurisdictionmultiple_choiceThere is personal jurisdiction over a defendant in the state where the defendant is domiciled, or when (1) the defendant has sufficient contacts with the state, such that they have availed itself of the privileges of the state and (2) the claim arises out of the nexus of the defendant's contacts with the state.
sara\_entailmentmultiple_choiceDetermine whether the following statements are entailed under the statute.
sara\_numericregressionAnswer the following questions.
supply\_chain\_disclosure\_best\_practice\_accountabilitymultiple_choiceEvaluates supply chain disclosure practices
supply\_chain\_disclosure\_best\_practice\_certificationmultiple_choiceEvaluates supply chain disclosure practices
supply\_chain\_disclosure\_best\_practice\_trainingmultiple_choiceEvaluates supply chain disclosure practices
telemarketing\_sales\_rulemultiple_choiceThe Telemarketing Sales Rule is provided by 16 C.F.R. § 310.3(a)(1) and 16 C.F.R. § 310.3(a)(2).
## Data Format Each dataset retains its original columns from LegalBench and adds an `input` column containing a pre-formatted prompt based on the task's instructions and template from the LegalBench registry. This `input` column is designed for direct use with language models. The column structure varies by task; common examples include: - **Basic Legal**: `answer`, `index`, `text`, `input` - **Citation**: `answer`, `citation`, `index`, `text`, `input` - **Diversity Analysis**: `aic_is_met`, `answer`, `index`, `parties_are_diverse`, `text`, `input` - **Jurisdiction**: `answer`, `index`, `slice`, `text`, `input` - **SARA Analysis**: `answer`, `case id`, `description`, `index`, `question`, `statute`, `text`, `input` - **Supply Chain Disclosure**: `answer`, `index`, `text`, `input` - **MAUD Contract Analysis**: `answer`, `index`, `text`, `input` ## Usage Load and use a task dataset as follows: ```python from datasets import load_dataset # Load a specific task dataset = load_dataset("DatologyAI/legalbench", "canada_tax_court_outcomes") # Access the formatted input and answer example = dataset["test"][0] print("Input:", example["input"]) print("Answer:", example["answer"]) ``` ## Model Evaluation Example Evaluate a language model on a task: ```python from datasets import load_dataset from transformers import AutoTokenizer, AutoModelForCausalLM # Load model and tokenizer model_name = "meta-llama/Llama-2-7b-chat-hf" tokenizer = AutoTokenizer.from_pretrained(model_name) model = AutoModelForCausalLM.from_pretrained(model_name) # Load a task dataset = load_dataset("DatologyAI/legalbench", "personal_jurisdiction") example = dataset["test"][0] # Generate response inputs = tokenizer(example["input"], return_tensors="pt") outputs = model.generate(inputs["input_ids"], max_new_tokens=10, temperature=0.0) response = tokenizer.decode(outputs[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True) print(f"Gold answer: {example['answer']}") print(f"Model response: {response}") ```