Skip to content

Jankoding/topic-classifier

Repository files navigation

Topic Classifier

A hybrid topic classification tool using zero-shot learning and semantic similarity. Built with HuggingFace and SentenceTransformers.

Installation

pip install git+https://github.com/jankoding/topic-classifier.git

## Example usage:

from topic_classifier.classifier import run_classification

run_classification(
    data_folder='/content/drive/MyDrive/mytexts',
    output_folder='/content/drive/MyDrive/results',
    labels_file='/content/drive/MyDrive/labels.txt',
    topics_file='/content/drive/MyDrive/topics.txt'
)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •