Sign inSign up

textdatasetcleaner/tdc

By textdatasetcleaner

Updated over 5 years ago

Customizable tool for data cleaning (profanity, incorrect language, HTML tags, etc.)

Image
0

1.1K

textdatasetcleaner/tdc repository overview

Text Dataset Cleaner

Customizable tool for data cleaning (profanity, incorrect language, HTML tags, etc.). The list of handlers can be changed and selected in any order.

This tool will be useful for everyone who processes large amounts of text data to train neural networks. It will help to clear and normalize the text to make the learning result even better.

GitHub repo: https://github.com/TextDatasetCleaner/TextDatasetCleaner

All you need to do to start is to specify a configuration file and point to the input file to be processed.

The example configuration (in YAML format):

PRE_PROCESSING:
  - unique
PROCESSING:
  - detect_language:
      language_code: ru
  - filter_stop_words:
      language_code: ru
      mode: replace
  - filter_url
POST_PROCESSING:
  - shuffle

First, all line duplicates will be removed from the whole file (pre-processing), then for each line, a language will be defined, stop words will be removed and lines from URL will be removed (processing), and at the, end all lines will be shuffled (post-processing).

Now more than 20 processors have been implemented, the full list can be found here.

Tag summary

Content type

Image

Digest

Size

129.2 MB

Last updated

over 5 years ago

docker pull textdatasetcleaner/tdc