GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - apdullahyayik/Tr-topicter: 🔍 A simple topic detector.

BranchesTags
Open more actions menu

Latest commit

 

History

42 Commits
42 Commits

Folders and files

NameName
Last commit message
Last commit date
trtopicter
trtopicter
 
 
LICENSE.txt
LICENSE.txt
 
 
MANIFEST.in
MANIFEST.in
 
 
README.md
README.md
 
 
example.py
example.py
 
 
setup.cfg
setup.cfg
 
 
setup.py
setup.py
 
 

Repository files navigation

🔍 TrTopicter

A simple topic detector.

Python Version PyPI Version

Overview

TrTopicter is a pre-built package equipped with a machine learning model designed to detect the topics of Turkish textual content. The language of the text is first identified to avoid analyzing non-Turkish text, which could lead to inaccurate results. The deployed model has been trained on nearly 30,000 annotated Turkish sentences/paragraphs, achieving an average F-1 score of 94.37%. The execution time for analyzing text with over 300 characters is less than 1 ms, and resource usage is only 6 MB.

Installation

You can easily install TrTopicter via PyPI. It has been tested on Windows 8/10, Ubuntu 18.04/20.04, and macOS Catalina 10.15.7.

pip install trtopicter

Supported Topics

  • politics
  • economy
  • health
  • sport
  • technology
  • culture
  • religion
  • justice

Pre-processing

Text preprocessing includes:

  • Case-folding to lowercase
  • Punctuation, numbers, and white space removal
  • Stop words removal (Credits: Zemberek-NLP)

Configuration

{
  "LANGUAGE_IDENTIFICATION": {
    "limit": {
      "character": 500
    },
    "probability_threshold": 0.2
  },
  "DOMAIN_DETECTION": {
    "limit": {
      "character": 500
    },
    "probability_threshold": 0.5
  }
}
  • character: Number of characters threshold for detection (data type: integer).
  • probability_threshold: Probability threshold for detection (data type: float).

Usage

You can use the TrTopicter package to determine the topic of Turkish text easily:

from trtopicter import TrTopicter

topicter = TrTopicter()

result = topicter.get_topic("Your Turkish text goes here.")

print(result)

To-do List

Our to-do list includes:

  • Expanding the number of supported topics
  • Adding Cython support

Additional Resources

Explore more about natural language processing and related topics:

  • Fasttext
  • Topic Classification Survey
  • Speech and Language Processing
  • Bogazici University CMPE-561

About

🔍 A simple topic detector.

Topics

fasttextfasttext-embeddingspythontext-classificationtopic-classificationturkish-languageturkish-nlp

Resources

Readme
MIT license
Activity

Stars

4 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.