GithubHelp home page GithubHelp logo

huggingface-question-answering's Introduction

Question Answering using Hugging Face Transformers

This repository contains code and resources for building a Question Answering (QA) system.

Requirements

  • Python 3.7 or above
  • Hugging Face Transformers library
  • Wikipedia API library (for the provided sample code)
  • Other dependencies as listed in the requirements.txt file

Installation

  1. Clone this repository:
  2. Navigate to the repository:
  3. Install the required dependencies: pip install -r requirements.txt

Usage

  1. Change desired topics in the file as needed.
  2. Run the wikipedia_data_fech.py script to collect data from Wikipedia. This script will create a data directory and save the data in .TXT files.
  3. Run the qa.py script to use the QA system. The script will prompt you to enter a question. The script will then search for the answer in the document corpus and return the answer if found.

Please refer to the code and comments within the repository for more detailed instructions and guidance on each step.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License.

Acknowledgments

Disclaimer

This repository serves as a tutorial and starting point for building a QA system. It is important to customize and adapt the code, data, and approaches to suit your specific use case and requirements. The provided code and resources are not intended to be used as-is for production environments, but rather as a learning resource.

huggingface-question-answering's People

Contributors

gabrielsecco22 avatar

Watchers

James Cloos avatar  avatar Kostas Georgiou avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.