Coder Social home page Coder Social logo

sinlt / specialedition Goto Github PK

View Code? Open in Web Editor NEW

This project forked from piglaker/specialedition

0.0 0.0 0.0 103.11 MB

A NLP project for Chinese Spell Check & Chinese Text Correction,

License: Apache License 2.0

Shell 1.32% Python 82.90% C 0.01% HTML 0.85% Jupyter Notebook 14.92%

specialedition's Introduction

Chinese Spell Check

1.Install all the requirements.
2.Processe the fxxking data.
3.bash run.sh

use ./scripts/sighan/generate.py to generate data in ./data/rawdata/sighan

Start-up

python >= 3.7
conda create -n ctcSE python=3.7

then
conda activate ctcSE
pip3 install -r requirements.txt

apex
bash install_apex
or
git clone https://github.com/NVIDIA/apex
cd apex
pip install -v --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" .

install pytorch for your CUDA & GPU
example:
conda install pytorch==1.10.1 torchvision==0.11.2 torchaudio==0.10.1 -c pytorch or
pip install torch==1.10.1+cu111 torchvision==0.11.2+cu111 torchaudio==0.10.1 -f https://download.pytorch.org/whl/torch_stable.html

maybe forget
pip install datasets==1.2.0

test env
sh test.sh"

Note:

./data
./models
./logs
./models
./scripts
./utils

core:
metric
load_model
load_dataset
args_process

main:
out/err redirect

lib:
hack transformers' trainer

specialedition's People

Contributors

piglaker avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.