Giter VIP home page Giter VIP logo

text_classification_with_huggingface_berts's Introduction

GitHub license

Auto Text Classification with BERTs

This repository serves as a backup of my efforts in building pipelines and models for text classification projects. ๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰

Note: Due to the Non-Disclosure Agreement, data cannot be provided in this repository.

Anyway, it's my very first open-source project, so...

๐ŸŒŸ If you find this project useful or interesting, please consider giving it a star! It helps me know that I'm on the right track. ๐ŸŒŸ

Project Status

  • Data cleaning (Completed: 0321)
  • Modeling (Completed: 0521)
  • Pipeline development (Completed: 0611)
  • Finalize some codes (Completed: 0828)

To-do:

  • Finalize some in-line doc str (Target: 0928)

Features ๐Ÿš€

The project code can be reused for other text classification tasks and offers the following features:

  • Automatic downloading of models and tokenizers from Huggingface by simply providing the model name.
  • Automated training, testing, logging, and checkpointing for any DataFrames with 'text' and 'label' columns.
  • Designed pipelines for incremental training using checkpoints.

Usage ๐Ÿ’ป

To use this project, follow these steps:

  1. Prepare cleaned training, validation, and testing datasets with columns such as 'text' and 'label'.
  2. Explore the available pre-trained language models on Huggingface that interest you.
  3. Copy the model name and paste it into the model_name variable in train_config.py under the config folder.
  4. ๐Ÿ”ง Adjust relevant parameters such as learning rate, batch size, etc., as specified in train_config.py.
  5. ๐Ÿ”ง Try out different techniques and parameters, such as focal loss and class balancing, which are provided in the tools folder.
  6. Once you have obtained the best model, you can also perform incremental training on additional data, and the necessary code is already provided for you.

Please refer to the documentation within the code for more detailed usage instructions and examples.

Contributions

Contributions to this project are welcome! If you have any suggestions, ideas, or improvements, please feel free to open an issue or submit a pull request.

Support

If you encounter any issues or have any questions, feel free to open an issue on the GitHub repository. Your feedback and suggestions are highly appreciated.

License

This project is licensed under the MIT License.

text_classification_with_huggingface_berts's People

Contributors

nickzhou10 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  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.