help@rskworld.in +91 93305 39277
RSK World
  • Home
  • Development
    • Web Development
    • Mobile Apps
    • Software
    • Games
    • Project
  • Technologies
    • Data Science
    • AI Development
    • Cloud Development
    • Blockchain
    • Cyber Security
    • Dev Tools
    • Testing Tools
  • Blog
  • About
  • Contact

Theme Settings

Color Scheme
Display Options
Font Size
100%
Back to Project
RSK World
question-answering
/
examples
RSK World
question-answering
Question Answering Dataset - Question Answering + Reading Comprehension + SQuAD Format + NLP
examples
  • README.md2.4 KB
  • bert_example.py4.3 KB
  • gpt_example.py4.3 KB
  • transformers_example.py6 KB
backtesting.pyscript.jsloader.pystyles.css
script.js
Raw Download
Find: Go to:
/*
    Project: Question Answering Dataset
    Description: A dataset containing context passages, questions, and answers for training QA models and reading comprehension systems.
    Author: Molla Samser
    Website: https://rskworld.in
    Contact: help@rskworld.in
    Phone: +91 93305 39277
*/

// Load and display dataset preview
document.addEventListener('DOMContentLoaded', function() {
    loadDatasetPreview();
});

/**
 * Load and display a preview of the dataset
 */
async function loadDatasetPreview() {
    try {
        const response = await fetch('squad_format.json');
        const data = await response.json();
        
        const previewContainer = document.getElementById('dataset-preview');
        previewContainer.innerHTML = '';
        
        // Display first 3 examples
        let count = 0;
        for (const item of data.data) {
            if (count >= 3) break;
            
            for (const paragraph of item.paragraphs) {
                if (count >= 3) break;
                
                for (const qa of paragraph.qas) {
                    if (count >= 3) break;
                    
                    const previewItem = document.createElement('div');
                    previewItem.className = 'preview-item';
                    
                    const question = document.createElement('h4');
                    question.textContent = `Q: ${qa.question}`;
                    
                    const context = document.createElement('p');
                    context.textContent = `Context: ${paragraph.context.substring(0, 150)}...`;
                    
                    const answer = document.createElement('p');
                    answer.className = 'answer';
                    answer.textContent = `A: ${qa.answers[0].text}`;
                    
                    previewItem.appendChild(question);
                    previewItem.appendChild(context);
                    previewItem.appendChild(answer);
                    
                    previewContainer.appendChild(previewItem);
                    count++;
                }
            }
        }
        
        if (count === 0) {
            previewContainer.innerHTML = '<p>No data available for preview.</p>';
        }
    } catch (error) {
        console.error('Error loading dataset preview:', error);
        document.getElementById('dataset-preview').innerHTML = 
            '<p>Error loading dataset preview. Please check if the dataset file exists.</p>';
    }
}

/**
 * Smooth scroll to section
 */
function scrollToSection(sectionId) {
    const section = document.getElementById(sectionId);
    if (section) {
        section.scrollIntoView({ behavior: 'smooth' });
    }
}

/**
 * Format dataset statistics
 */
function formatNumber(num) {
    return num.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
}

87 lines•2.9 KB
javascript
styles.css
Raw Download
Find: Go to:
/*
    Project: Question Answering Dataset
    Description: A dataset containing context passages, questions, and answers for training QA models and reading comprehension systems.
    Author: Molla Samser
    Website: https://rskworld.in
    Contact: help@rskworld.in
    Phone: +91 93305 39277
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 3rem 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header h1 .text-danger {
    color: #ff6b6b;
    margin-right: 10px;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Main Content */
main {
    padding: 3rem 0;
}

section {
    background: #fff;
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

section h2 {
    color: #667eea;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

section h2 i {
    margin-right: 10px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.feature-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature-card i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: #666;
    font-size: 0.9rem;
}

/* Technology Tags */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.tech-tag {
    background: #667eea;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Difficulty Badge */
.difficulty-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.difficulty-badge.advanced {
    background: #ff6b6b;
    color: #fff;
}

/* Download Buttons */
.download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background: #667eea;
    color: #fff;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.4);
}

/* Dataset Preview */
.preview-container {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 5px;
    margin-top: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.preview-item {
    background: #fff;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    border-left: 4px solid #667eea;
}

.preview-item h4 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

.preview-item p {
    color: #666;
    margin-bottom: 0.5rem;
}

.preview-item .answer {
    color: #28a745;
    font-weight: 500;
}

/* Code Examples */
.code-examples {
    margin-top: 1.5rem;
}

.code-block {
    margin-bottom: 1.5rem;
}

.code-block h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.code-block pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.code-block code {
    font-family: 'Courier New', monospace;
}

/* Contact Section */
.contact-info {
    margin-top: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-info a {
    color: #667eea;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer a {
    color: #667eea;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

footer p {
    margin-bottom: 0.5rem;
}

/* Info Box */
.info-box {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
}

.info-box ul {
    margin-left: 2rem;
    margin-top: 0.5rem;
}

.info-box li {
    margin-bottom: 0.3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    section {
        padding: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .download-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

342 lines•5.7 KB
css

About RSK World

Founded by Molla Samser, with Designer & Tester Rima Khatun, RSK World is your one-stop destination for free programming resources, source code, and development tools.

Founder: Molla Samser
Designer & Tester: Rima Khatun

Development

  • Game Development
  • Web Development
  • Mobile Development
  • AI Development
  • Development Tools

Legal

  • Terms & Conditions
  • Privacy Policy
  • Disclaimer

Contact Info

Nutanhat, Mongolkote
Purba Burdwan, West Bengal
India, 713147

+91 93305 39277

hello@rskworld.in
support@rskworld.in

© 2026 RSK World. All rights reserved.

Content used for educational purposes only. View Disclaimer