The dataset viewer is not available for this dataset.
Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
๐Question answer pair data set
Data curation steps:
Several articles on the novels Khasakkinte ithihaasam and One hundred years were used to generate question-answer pairs that are used to fine-tune the model.
Generating QA dataset from pdf document
# -*- coding: utf-8 -*-
"""
Created on Mon Sep 15 22:51:55 2025
@author: padmanab
"""
filepath = "document_name.pdf"
from PyPDF2 import PdfReader
def extract_text_pypdf2(file_path):
reader = PdfReader(file_path)
pages_text = []
for page in reader.pages:
text = page.extract_text()
if text:
pages_text.append(text)
return pages_text
pages = extract_text_pypdf2(filepath)
print("finished pdf reading.")
#%%
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
from datasets import load_dataset
import torch
token_name = ""
from huggingface_hub import login
login(token_name)
device = "cuda" if torch.cuda.is_available() else "cpu"
# Load base model (not fine-tuned one)
model_name = "meta-llama/Llama-2-7b-chat-hf"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(
model_name,
device_map=device,
)
generator = pipeline("text-generation", model=model, tokenizer=tokenizer)
def ask_model(prompt, max_new_tokens):
"""Helper to query the base model with a prompt."""
messages = f"[INST] {prompt} [/INST]"
out = generator(messages, max_new_tokens=max_new_tokens, do_sample=True, temperature=0.7)
return out[0]["generated_text"].split("[/INST]")[-1].strip()
for pi in range(len(pages)):
prompt = pages[pi]
text_new = ask_model(f"Create 5 question-answer pairs with labels Q1 for question and A1 for answer from the followingtext: \n\n{prompt}. Avoind saying 'According to the text' in questions or aswers.", max_new_tokens=len(prompt))
print(text_new)
Uploading the QA dataset to Hugging Face hub
from datasets import Dataset, DatasetDict
full_dataset = Dataset.from_list(sum(qa_datasets, []))
dataset_dict = DatasetDict({
'train': full_dataset})
# Push to your Hugging Face account
dataset_dict.push_to_hub("username/dataset_name")
Dataset Statistics
- Total Samples: 692
- Languages: 1
- Source: Listed below
- Task: Question Answering
๐ Data Sources
Rathod, Dharmesh D. and Rucha Brahmbhatt. "Portrayal of Indian Rural Life in The Legends of Khasak by O.V. Vijayan." Knowledge Resonance, ISSN 2231-1629, Impact Factor 8.072, pp. 299-301.
Jangale, Jagdish. "Myth and Reality in O.V. Vijayan's The Legends of Khasak." Knowledge Resonance, ISSN 2231-1629, Impact Factor 8.072, pp. 336-338.
Jayan, T. and S. Selvalakshmi. "A Study of the Multiple Themes in O.V. Vijayan's 'The Legends of Khasak'." Paripex - Indian Journal of Research, Vol. 7, Issue 1, January 2018, pp. 86-88.
Saran, S. and R. Vasuhi. "The Demeanor of Nature in O.V. Vijayan's The Legends of Khasak." The Creative Launcher, Vol. III, Issue I, April 2018, pp. 244-249.
"O. V. Vijayan." Wikipedia, https://en.wikipedia.org/wiki/O._V._Vijayan (Accessed September 17, 2025).
Sruthi, S. and A. R. Savitha. "When a Work Walks Ahead of Times: O. V. Vijayan's Khasakkinte Ithihasam as the Product of Postmodern Sensibility." Literature & Aesthetics, Vol. 32, Issue 1, 2022, pp. 1-10.
Gupta, Neerja A. "A Commentary on Locales and Treatment: O.V. Vijayan's The Legends of Khasak." Ars Artium: An International Peer Reviewed-cum-Refereed Research Journal of Humanities and Social Sciences, Vol. 4, January 2016, pp. 101-106.
Balakrishnan, Vinod and Shintu Dennis. "Swadhyaya as Spiritual Pragmatism: Reading O.V. Vijayan's Khasakkinte Ithihasam." IBA Journal of Management & Leadership, Vol. 5, Issue 2, January-June 2014, pp. 125-134.
Thaliath, Maria Rajan. "Grotesque Realism in O.V. Vijayan's The Saga of Dharmapuri." Tattva-Journal of Philosophy, Vol. 9, Issue 1, 2017, pp. 29-41.
Dhanesh, M. "Look-In, Think-Out: Observations on O.V. Vijayan's Alternative Paradigm of Existence in The Legends of Khasak." Kerala and the Crises of Modernity, pp. 103-111.
Joseph, Lalitha. "Ecological Elements in the Indian Narratology: A Study of Anand, Gita Mehta and O. V. Vijayan." The Criterion: An International Journal in English, Vol. 8, Issue I, February 2017, pp. 122-130.
Sajeev, Jain Mary and Rajesh M. "Exploring the Tapestry of Time: Mapping the Print Landscape of O.V. Vijayan's Khasakkinte Ithihasam." Ishal Paithrkam, Issue 37, March 2024, pp. 94-102.
Pawar, Pramod Ambadasrao (ed.). "O.V. Vijayan's The Infinity of Grace: A Study in Philosophy of Literature." By Rajendran N.P. Epitome Journals, Vol. 4, Issue 6, June 2018, pp. 89-95.
Yadav, Simran and Naveen Kumar Mehta. "O.V. Vijayan's Style and Techniques as a Novelist: A Critical Assessment." Research Journal of English Language and Literature (RJELAL), Vol. 12, Issue 4, October-December 2024, pp. 1-5.
Hussair, Narghese. "A Comparative Study of Magical Realism in One Hundred Years of Solitude and the Legends of Khasak." SMART MOVES JOURNAL IJELLH, Vol. 8, Issue 7, July 2020, pp. 212-219.
Ashwathy, P V Ravindran and Pratima Das. "O.V. Vijayan's The Legends of Khasak as a Geo-Narrative." Research Journal of English (RJOE), Vol. 5, Issue 1, 2020, pp. 187-191.
- Downloads last month
- 26