Data Scientist
ML Engineer
Data Analyst
Hugging Face
PyTorch
Streamlit
main.py
: The main script to run the entire pipelinedata_loading.py
: Functions for loading and preprocessing the SQuAD datasetmodel_utils.py
: Utility functions for initializing the model and tokenizertraining.py
: Functions for training the modelqa_utils.py
: Utilities for question answering, including an interactive QA systemload_squad
function in data_loading.py
reads the SQuAD JSON files and converts them into a format suitable for training.initialize_model_and_tokenizer
function in model_utils.py
loads the pretrained T5 model and tokenizer.train_model
function in training.py
sets up the training arguments, tokenizes the dataset, and trains the model using the Hugging Face Trainer
class.answer_question
function in qa_utils.py
takes a question and context, processes them through the model, and returns the generated answer.interactive_qa
function in qa_utils.py
provides a command-line interface for users to input contexts and questions, and receive answers from the model.different transfomers and their uses. Contribute to IM07813/Transformers development by creating an account on GitHub.
0
0
Data Scientist
ML Engineer
Data Analyst
Hugging Face
PyTorch
Streamlit