--- title: Content Coverage Evaluator emoji: 📋 colorFrom: blue colorTo: purple sdk: gradio sdk_version: 5.38.0 app_file: app.py pinned: false license: apache-2.0 --- # Content Coverage Evaluator A powerful tool to evaluate how well a paragraph captures content from a set of bullet points using state-of-the-art NLP models. ## Features - **Semantic Similarity Analysis**: Uses SentenceTransformers to measure content overlap - **Natural Language Inference**: Employs BART-MNLI to detect logical entailment - **Quantitative Results**: Provides clear metrics for Fully Covered, Partially Covered, and Missing content - **File Upload Support**: Process .txt files directly - **Text Input Option**: Paste content directly for quick analysis - **Adjustable Thresholds**: Fine-tune sensitivity for your specific use case ## Models Used 1. **all-MiniLM-L6-v2**: Lightweight sentence transformer for semantic similarity 2. **facebook/bart-large-mnli**: Fine-tuned BART model for natural language inference ## How It Works The evaluator analyzes each bullet point against the paragraph using: 1. **Semantic Similarity Score**: Measures how similar the content is in meaning 2. **Entailment Score**: Determines if the paragraph logically entails the bullet point Based on these scores and your thresholds, each bullet point is classified as: - ✅ **Fully Covered**: Both scores exceed thresholds - 🟡 **Partially Covered**: At least one score meets partial criteria - ❌ **Missing**: Neither score meets minimum criteria ## Usage 1. Upload your paragraph file (File A) and bullet points file (File B), or paste text directly 2. Adjust similarity and entailment thresholds if needed 3. Click "Evaluate Coverage" to get detailed results 4. Review the summary statistics and per-bullet-point analysis ## Example Files **Paragraph File (File A):** ``` Machine learning is a subset of artificial intelligence that enables computers to learn and improve from experience without being explicitly programmed. It uses algorithms to analyze data, identify patterns, and make predictions or decisions. ``` **Bullet Points File (File B):** ``` • Machine learning is part of AI • Computers learn from experience • No explicit programming needed • Uses algorithms for data analysis • Identifies patterns in data • Makes predictions and decisions • Requires large datasets for training ``` ## Output The tool provides: - **Coverage Summary**: Overall statistics and percentages - **Detailed Results**: Per-bullet-point analysis with scores - **Coverage Score**: Weighted overall performance metric Perfect for content analysis, document review, summarization evaluation, and educational assessment!