क़ानूनी दस्तावेज़ों के एनोटेशन के लिए बेहतर तरीक़े
Potato में क़ानूनी दस्तावेज़ एनोटेट कीजिए, अनुबंध, अदालती दस्तावेज़ और नियामक पाठ, span लेबलिंग, entity निकालने और निजता को पहले रखने वाली self-hosted तैनाती के साथ।
क़ानूनी पाठ एनोटेशन की अपनी अलग किस्म की समस्या है। ढाँचा घना होता है, शब्दावली विशेषज्ञों की है, और एक ग़लत लेबल के असली क़ानूनी नतीजे निकल सकते हैं। यह गाइड बताती है कि इसे ठीक से कैसे एनोटेट किया जाए।
क़ानूनी एनोटेशन मुश्किल क्यों है
अकेली शब्दावली ही इतनी है कि आपको प्रशिक्षित एनोटेटर चाहिए, यूँ ही चुने गए crowd worker नहीं। दस्तावेज़ लंबे होते हैं, अनुबंध कभी-कभी सैकड़ों पन्नों तक खिंच जाते हैं, और एक हिस्सा लगातार दूसरे हिस्सों की ओर इशारा करता रहता है। यहाँ सटीकता आम कामों से ज़्यादा मायने रखती है, क्योंकि ढीला-ढाला span किसी उपवाक्य का अर्थ ही बदल सकता है। और वह अर्थ काफ़ी हद तक दस्तावेज़ के प्रकार और क्षेत्राधिकार पर टिका होता है, इसलिए संदर्भ कभी वैकल्पिक नहीं होता।
इसके पीछे काम करने वाली span और टेक्स्ट एनोटेशन की व्यवस्था के लिए स्रोत दस्तावेज़ देखें।
दस्तावेज़ का विभाजन
लंबे दस्तावेज़ों को तोड़ना
annotation_task_name: "Legal Document Annotation"
display:
# Segment by section
segmentation:
enabled: true
method: section_headers
pattern: '^\d+\.\s+[A-Z]'
# Show document context
context:
show_previous_section: true
show_section_hierarchy: true
# Navigation
navigation:
show_outline: true
jump_to_section: trueहिस्सा-दर-हिस्सा एनोटेशन
data_files:
- contracts.json
item_properties:
id_key: id
text_key: text
preprocessing:
segment_by: sections
preserve_metadata: true
include_section_number: true
# Each section becomes an annotation item
# {
# "id": "contract_001_section_3.2",
# "text": "The Licensor grants...",
# "section_number": "3.2",
# "section_title": "License Grant",
# "document_id": "contract_001"
# }क़ानूनी entity की पहचान
अनुबंधों की अपनी entity
annotation_schemes:
- annotation_type: span
name: legal_entities
labels:
- name: PARTY
color: "#FECACA"
description: "Contracting parties (Licensor, Licensee, Company, etc.)"
- name: DEFINED_TERM
color: "#FDE68A"
description: "Defined terms (usually capitalized)"
- name: DATE
color: "#BBF7D0"
description: "Dates and time periods"
- name: MONETARY
color: "#C4B5FD"
description: "Dollar amounts, fees, penalties"
- name: OBLIGATION
color: "#BFDBFE"
description: "Must, shall, will obligations"
- name: CONDITION
color: "#FED7AA"
description: "If, unless, provided that conditions"
- name: REFERENCE
color: "#E0E7FF"
description: "References to other sections or documents"दायित्वों की पहचान
annotation_schemes:
- annotation_type: multiselect
name: obligation_type
description: "What type of obligation is this?"
labels:
- name: performance
label: "Performance Obligation"
description: "Party must do something"
- name: payment
label: "Payment Obligation"
description: "Party must pay"
- name: restriction
label: "Restriction/Prohibition"
description: "Party must not do something"
- name: condition
label: "Conditional Obligation"
description: "Obligation triggered by condition"
- name: warranty
label: "Warranty/Representation"
description: "Statement of fact or promise"उपवाक्यों का वर्गीकरण
अनुबंध के उपवाक्यों के प्रकार
annotation_schemes:
- annotation_type: radio
name: clause_type
description: "What type of clause is this?"
labels:
- name: definitions
label: "Definitions"
- name: grant
label: "Grant of Rights/License"
- name: consideration
label: "Consideration/Payment"
- name: term
label: "Term and Termination"
- name: representations
label: "Representations & Warranties"
- name: indemnification
label: "Indemnification"
- name: limitation
label: "Limitation of Liability"
- name: confidentiality
label: "Confidentiality"
- name: ip
label: "Intellectual Property"
- name: dispute
label: "Dispute Resolution"
- name: boilerplate
label: "Boilerplate/Miscellaneous"जोखिम का आकलन
annotation_schemes:
- annotation_type: likert
name: risk_level
description: "Rate the risk level of this clause for [Party]"
min_label: "Low Risk"
max_label: "High Risk"
size: 5
- annotation_type: text
name: risk_notes
description: "Explain the risk factors"
rows: 4अदालती दस्तावेज़ों का एनोटेशन
मुक़दमे की जानकारी निकालना
annotation_schemes:
- annotation_type: span
name: case_entities
labels:
- name: CASE_NUMBER
description: "Case identifier"
- name: COURT
description: "Court name and jurisdiction"
- name: JUDGE
description: "Presiding judge"
- name: PLAINTIFF
description: "Plaintiff/Petitioner"
- name: DEFENDANT
description: "Defendant/Respondent"
- name: ATTORNEY
description: "Attorneys/Legal representatives"
- name: LEGAL_CITATION
description: "Citations to cases, statutes, regulations"
- name: RULING
description: "Court's ruling or order"तर्क का ढाँचा
annotation_schemes:
- annotation_type: span
name: argument_structure
labels:
- name: CLAIM
color: "#FECACA"
description: "Main claim or assertion"
- name: PREMISE
color: "#BBF7D0"
description: "Supporting premise"
- name: EVIDENCE
color: "#BFDBFE"
description: "Evidence cited"
- name: REBUTTAL
color: "#FED7AA"
description: "Counter-argument"
- name: CONCLUSION
color: "#E0E7FF"
description: "Conclusion drawn"क़ानूनी शब्दों को उभारना
display:
keyword_highlighting:
enabled: true
categories:
- name: obligation_words
color: "#FEE2E2"
keywords:
- shall
- must
- will
- agrees to
- is required to
- is obligated to
- name: permission_words
color: "#D1FAE5"
keywords:
- may
- is permitted to
- has the right to
- is entitled to
- name: prohibition_words
color: "#FEF3C7"
keywords:
- shall not
- must not
- may not
- is prohibited from
- name: condition_words
color: "#DBEAFE"
keywords:
- if
- unless
- provided that
- subject to
- contingent upon
- in the event thatक़ानूनी कामों के लिए गुणवत्ता नियंत्रण
quality_control:
# Require legal training
qualification:
required_training: legal_annotation_training
training_accuracy: 0.85
# Domain expertise check
attention_checks:
enabled: true
items:
- text: |
"Notwithstanding any provision herein to the contrary,
Licensee shall indemnify Licensor against all claims."
expected:
obligation_type: indemnification
obligated_party: "Licensee"
type: domain_knowledge
# High agreement required
redundancy:
annotations_per_item: 3
agreement_threshold: 0.8
on_disagreement: expert_review
# Expert review layer
expert_review:
enabled: true
review_threshold: 0.7
expert_users: [legal_expert_1, legal_expert_2]पूरा क़ानूनी एनोटेशन कॉन्फ़िग
annotation_task_name: "Contract Clause Analysis"
display:
text_display: html
# Section context
context:
show_document_metadata: true
show_section_hierarchy: true
# Legal term highlighting
keyword_highlighting:
enabled: true
categories:
- name: obligations
color: "#FEE2E2"
keywords: [shall, must, will, agrees]
- name: conditions
color: "#DBEAFE"
keywords: [if, unless, provided that, subject to]
- name: defined_terms
pattern: '\b[A-Z][a-zA-Z]+(?:\s+[A-Z][a-zA-Z]+)*\b'
color: "#FEF3C7"
annotation_schemes:
# Clause type
- annotation_type: radio
name: clause_type
description: "Classify this clause"
labels:
- name: license_grant
label: "License Grant"
- name: payment
label: "Payment/Consideration"
- name: term
label: "Term/Termination"
- name: indemnification
label: "Indemnification"
- name: limitation
label: "Limitation of Liability"
- name: confidentiality
label: "Confidentiality"
- name: other
label: "Other"
# Entity spans
- annotation_type: span
name: entities
labels:
- name: PARTY
color: "#FECACA"
- name: DEFINED_TERM
color: "#FDE68A"
- name: MONETARY
color: "#C4B5FD"
- name: DATE
color: "#BBF7D0"
- name: OBLIGATION
color: "#BFDBFE"
# Risk assessment
- annotation_type: likert
name: risk
description: "Risk level for the receiving party?"
size: 5
min_label: "Low"
max_label: "High"
# Key issues
- annotation_type: text
name: issues
description: "Note any unusual or problematic language"
rows: 4
quality_control:
redundancy:
qualification:एनोटेटर के दिशानिर्देश लिखना
क़ानूनी कार्य के अच्छे दिशानिर्देश दायरा साफ़ कर देते हैं (कौन से दस्तावेज़, कौन से क्षेत्राधिकार) और उनमें एक शब्दावली-सूची होती है, ताकि एनोटेटर शब्दों को उसी तरह पढ़ें जैसे आप पढ़ते हैं। दो अर्थ वाली भाषा के बारे में और इस बारे में साफ़ लिखिए कि किसी cross-reference को कब एनोटेट करना है और कब छोड़ देना है। यह भी बताइए कि span की सही सीमा किसे माना जाएगा, क्योंकि इस क्षेत्र में “लगभग सही” शायद ही कभी काफ़ी होता है।
बेहतर तरीक़े
ऐसे एनोटेटर लगाइए जो सचमुच इस क्षेत्र को जानते हों, क्योंकि उसके बिना क़ानूनी लेबलिंग चलती ही नहीं। लंबे दस्तावेज़ों को ऐसे हिस्सों में बाँटिए जिन्हें कोई एक बार में दिमाग़ में रख सके। जिस क़ानूनी भाषा का वज़न है उसे उभारकर दिखाइए, ताकि लोग उसे पढ़ते हुए फिसल न जाएँ। redundancy ऊँची रखिए, क्योंकि यहाँ ग़लती की क़ीमत ऊँची है। एक विशेषज्ञ समीक्षा की परत जोड़िए, जहाँ वकील किनारे के मामले सँभालें। हर लेबल की परिभाषा सटीक रखिए। और एनोटेटर को आसपास का ढाँचा तथा जुड़े हुए हिस्से दिखाइए, क्योंकि अकेला उपवाक्य भ्रम में डाल सकता है।
पूरे दस्तावेज़ एनोटेशन स्कीम पर हैं।