# chenyuntc/PyTorchText

1st Place Solution for Zhihu Machine Learning Challenge . Implementation of various text-classification models.(知乎看山杯第一名解决方案)

Repository: https://github.com/chenyuntc/PyTorchText
Canonical: https://ross.abutalabs.com/products/pytorchtext
Homepage: https://biendata.com/competition/zhihu/
Language: Python
License: MIT
License Family: permissive
Topics: pytorch, nlp, textcnn, textrnn, fasttext, textrcnn, lstm
Last push: 2018-07-16T03:08:50+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3304, "days_push": 2970, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1057, forks 360 (observed 2026-08-28T04:03:24.823865+00:00)

## What it is
A PyTorch implementation of multiple text classification models (TextCNN, TextRNN/LSTM, RCNN, FastText, inception CNN) that won 1st place in the Zhihu Machine Learning Challenge 2017. It includes data preprocessing scripts, training pipelines, and model definitions for Chinese question topic classification.

## Use cases
- classify Chinese questions into topics
- implement TextCNN TextRNN RCNN FastText models in PyTorch
- reproduce a winning text classification competition solution
- learn deep learning models for text classification
- train LSTM and CNN models on word and character embeddings

## When to choose
- you need reference implementations of classic text classification models in PyTorch
- you are studying competition-winning NLP solutions
- you want to benchmark CNN/RNN/FastText approaches on Chinese text

## When to avoid
- you need modern transformer-based models
- you require Python 3 support or active maintenance
- you need production-ready text classification services

## Facets
- artifact type: library
- maturity: maintenance
- function: machine-learning, nlp, deep-learning
- domain: machine-learning, deep-learning
- platform: python
- tags: pytorch, text-classification, textcnn, lstm, fasttext, rcnn, competition-solution, kaggle-style, natural-language-processing, linux, gpu

## Member repositories
- chenyuntc/PyTorchText (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:24.823865+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:57:56.364222+00:00, confidence not recorded.
  - readme: https://github.com/chenyuntc/PyTorchText (fetched 2026-08-28T04:03:24.823865+00:00, sha 2b25b2f6d0f2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
