Spaces:
Running
Running
File size: 1,914 Bytes
73633b5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | # βββββββββββββββββββββββββββββββββββββββββββββ
# config.py β Central settings for MCQ Generator
# Change values here to tune the whole project.
# βββββββββββββββββββββββββββββββββββββββββββββ
# ββ Model settings ββββββββββββββββββββββββββ
# T5 model fine-tuned on SQuAD for question generation
# "highlight" format: answer is wrapped in <hl> tags in the input
QG_MODEL_NAME = "valhalla/t5-small-qg-hl"
# spaCy English model for NLP preprocessing
SPACY_MODEL = "en_core_web_sm"
# ββ Pipeline settings βββββββββββββββββββββββ
# How many top-ranked sentences to pick questions from
TOP_SENTENCES = 7
# Maximum number of MCQs to generate from one passage
MAX_QUESTIONS = 10
# Minimum sentence length (in words) to be considered for a question
MIN_SENTENCE_LENGTH = 8
# Number of wrong options (distractors) per question
NUM_DISTRACTORS = 3
# ββ Distractor generation strategy ββββββββββ
# Order of strategies tried. First one that returns enough distractors wins.
# Options: "wordnet", "sense2vec", "ner"
DISTRACTOR_STRATEGIES = ["wordnet", "ner", "sense2vec"]
# ββ Paths ββββββββββββββββββββββββββββββββββββ
# Path to GloVe vectors file (download separately if using sense2vec)
# Download: https://nlp.stanford.edu/projects/glove/
GLOVE_PATH = "models/glove.6B.100d.txt"
# Path to sample passages for testing
SAMPLE_DATA_PATH = "data/sample_passages.json"
# ββ UI settings ββββββββββββββββββββββββββββββ
APP_TITLE = "MCQ Generator"
APP_ICON = "π" |