ECE-Software / t1-text-keywords

huggingface.co
Total runs: 0
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: October 03 2026

Introduction of t1-text-keywords

Model Details of t1-text-keywords

T1 Text Keyword Layer

Server-side keyword pre-filter for ECE Connect text moderation.

Components
File Purpose
hurtlex_EN.tsv HurtLex English lexicon (raw TSV)
hurtlex_categories.json Which HurtLex categories to load ( ddf , re , is )
manual_slurs.json 42 curated slurs across 10 categories
threat_patterns.json 9 regex patterns for direct threats
Tier

T1 — runs on 100% of text uploads on the Connect server.

Not on-device. There is no T0 text model.

Measured performance

On 300 Kaggle hate speech tweets:

Component Hate recall
Keyword layer alone 74%
toxic-bert alone 81%
Combined (rescue) 90%

The keyword layer catches explicit slurs. toxic-bert rescues 62% of keyword misses (coded language, context-dependent hate).

Usage
import csv, json, re
from huggingface_hub import hf_hub_download

hurtlex_path = hf_hub_download('ECE-Software/t1-text-keywords', 'hurtlex_EN.tsv')
slurs_path   = hf_hub_download('ECE-Software/t1-text-keywords', 'manual_slurs.json')
threat_path  = hf_hub_download('ECE-Software/t1-text-keywords', 'threat_patterns.json')
cats_path    = hf_hub_download('ECE-Software/t1-text-keywords', 'hurtlex_categories.json')

HURTLEX_CATS = json.load(open(cats_path))['categories']
MANUAL       = json.load(open(slurs_path))
THREATS      = json.load(open(threat_path))['patterns']

keywords = {}
with open(hurtlex_path, encoding='utf-8') as f:
    for row in csv.DictReader(f, delimiter='\t'):
        cat = row.get('category', '').strip().lower()
        w = row.get('lemma', '').strip().lower()
        if cat in HURTLEX_CATS and w:
            keywords[w] = HURTLEX_CATS[cat]

for cat, words in MANUAL.items():
    for w in words:
        keywords[w] = f'manual_{cat}'

patterns = {w: re.compile(rf'\b{re.escape(w)}\b') for w in keywords}
threat_res = [re.compile(p, re.IGNORECASE) for p in THREATS]

Runs of ECE-Software t1-text-keywords on huggingface.co

0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About t1-text-keywords huggingface.co Model

More t1-text-keywords license Visit here:

https://choosealicense.com/licenses/apache-2.0

t1-text-keywords huggingface.co

t1-text-keywords huggingface.co is an AI model on huggingface.co that provides t1-text-keywords's model effect (), which can be used instantly with this ECE-Software t1-text-keywords model. huggingface.co supports a free trial of the t1-text-keywords model, and also provides paid use of the t1-text-keywords. Support call t1-text-keywords model through api, including Node.js, Python, http.

ECE-Software t1-text-keywords online free

t1-text-keywords huggingface.co is an online trial and call api platform, which integrates t1-text-keywords's modeling effects, including api services, and provides a free online trial of t1-text-keywords, you can try t1-text-keywords online for free by clicking the link below.

ECE-Software t1-text-keywords online free url in huggingface.co:

https://huggingface.co/ECE-Software/t1-text-keywords

t1-text-keywords install

t1-text-keywords is an open source model from GitHub that offers a free installation service, and any user can find t1-text-keywords on GitHub to install. At the same time, huggingface.co provides the effect of t1-text-keywords install, users can directly use t1-text-keywords installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

t1-text-keywords install url in huggingface.co:

https://huggingface.co/ECE-Software/t1-text-keywords

Url of t1-text-keywords

t1-text-keywords huggingface.co Url

Provider of t1-text-keywords huggingface.co

ECE-Software
ORGANIZATIONS

Other API from ECE-Software