An open API service indexing awesome lists of open source software.

https://github.com/hscspring/hnlp

Humanly DeepLearning for NLP, on top of Transformers.
https://github.com/hscspring/hnlp

Last synced: about 1 year ago
JSON representation

Humanly DeepLearning for NLP, on top of Transformers.

Awesome Lists containing this project

README

          

# hnlp
Humanly DeepLearning NLP, quickly demo and easily play.

- Quickly setup a production, from 0 to 90%+, gain the maximum marginal income.
- Quickly evaluate a new idea based on the existing datasets and models.

```python

data = Corpus() >> Preprocessor() >> Tokenizer() >> DataManager()
# x_train, y_train = data.run("/path/to/file")

pipe = (
Corpus() >>
Preprocessor() >>
Tokenizer() >>
DataManager() >>
Pretrained() >>
Model(config) >>
Task(optimizer, loss_fn, metric)
)

pipe.train("/path/to/train_file")
pipe.test("/path/to/test_file")
```

## Test

```bash
$ python -m pytest
```

- [x] 自动寻找 LearningRate