Commit Graph

2019 Commits

Author SHA1 Message Date
FengZiYjun
fac830e1cd fix bugs and clean up 2018-08-20 19:25:19 +08:00
lyhuang
6fe431833a docs/requirements 2018-08-20 17:46:14 +08:00
lyhuang
f2676d8927 docs更新
设置了模板,对fastNLP文件夹下的内容生成了文档
2018-08-20 17:22:26 +08:00
Ke Zhen
3ab8950d8d Update metrics and figure in readme. 2018-08-20 14:51:10 +08:00
FengZiYjun
4c8c2dfdb8 updates to core, loader, test:
- move preprocess.py from loader/ to core/
- changes to interface of preprocess: 1. add run method, to run the main processing 2. add cross validation split 3. add return value 4. merge subclasses
- Trainer supports cross validation
- add data as arguments in Trainer.train & Tester.test
- add readme.example.py, to run the example program shown in README.md
- other corresponding changes
2018-08-19 16:21:14 +08:00
Coet
fc7dd7eced
Merge pull request #33 from FengZiYjun/master
Updates to cores, loader, saver
2018-08-18 16:50:45 +08:00
Coet
836f05a8cc
Merge pull request #1 from FengZiYjun/FengZiYjun-patch-1
Update .travis.yml
2018-08-17 19:34:05 +08:00
Coet
1d000d3e39
Update .travis.yml 2018-08-17 19:28:38 +08:00
Coet
dfe0945893
Update .travis.yml 2018-08-17 19:14:01 +08:00
Xipeng Qiu
2f83010d9d
Merge pull request #32 from choosewhatulike/master
add a new chinese word segmentation model
2018-08-17 17:20:03 +08:00
FengZiYjun
80baf35765 add logging in Trainer & Tester
- see fastNLp/saver/logger.py to know how to create and use a logger
- a log file named "train_test.log" will be created in the same dir as the main file where the program starts
- this file records all important events happened in Trainer & Tester's methods
2018-08-17 11:16:13 +08:00
Ziyuan Feng
9e29fb2262 Merge branch 'master' of https://github.com/fastnlp/fastNLP 2018-08-17 09:22:49 +08:00
choosewhatulike
fb20e87321 add chinese word segmentation model 2018-08-17 00:07:38 +08:00
Xipeng Qiu
ad3b59b11c
Update README.md 2018-08-17 00:05:33 +08:00
Coet
9bc30f1705
Merge pull request #29 from keezen/master
Update readme, conv and max_pool
2018-08-16 22:10:13 +08:00
Coet
ffe7c26369
Merge branch 'master' into more_code_comments 2018-08-16 21:46:36 +08:00
Xipeng Qiu
abbe423dbe
Update README.md 2018-08-16 15:42:27 +08:00
choosewhatulike
1146ef0825 fix test_metrics 2018-08-15 21:41:10 +08:00
Coet
964cc2dc26
Merge pull request #25 from fastnlp/create_issue_templates
Update issue templates
2018-08-15 21:30:45 +08:00
FengZiYjun
929a595c4c Merge branch 'master' of https://github.com/fastNLP/fastNLP into to_merge
# Conflicts:
#	fastNLP/core/metrics.py
#	fastNLP/core/predictor.py
2018-08-15 21:07:55 +08:00
Ke Zhen
7f23b40ad7 Update readme, conv and max_pool 2018-08-15 20:27:05 +08:00
FengZiYjun
4bbeaebe96 Updates to cores, action, loader:
- rename Inference to Predictor
- rename Trainer.prepare_input to Trainer.load_train_data, load data_train.pkl only
- add __contains__ method to config Section class
- more code comments
- more elegant make_batch & data_iterator: Samplers return batch samples instead of batch indices
2018-08-15 20:12:20 +08:00
choosewhatulike
8a87807274 set no_grad() for test & inference, reduce memory usage 2018-08-14 00:35:48 +08:00
Yunfan Shao
762a559fab fix bug in SeqLabelTester 2018-08-14 00:14:13 +08:00
Coet
4bc123dc16 Update issue templates 2018-08-13 20:26:16 +08:00
choosewhatulike
d6ef132207 fix test_metrics bug 2018-08-12 20:04:38 +08:00
choosewhatulike
2961afd326 remove unused file 2018-08-12 19:55:19 +08:00
Coet
0b2e2ff586
Merge pull request #23 from fastnlp/dev/ci_test
Dev/ci test
2018-08-12 18:30:45 +08:00
Coet
8a6976460a
Merge pull request #24 from fastnlp/add-code-of-conduct-1
Create CODE_OF_CONDUCT.md
2018-08-12 18:16:00 +08:00
Coet
1cd7325328
Create CODE_OF_CONDUCT.md 2018-08-11 21:50:54 +08:00
Coet
3560fb1f67
Merge pull request #22 from fastnlp/dev/ner
Dev/ner
2018-08-11 21:29:24 +08:00
FengZiYjun
380fc251f4 add code coverage 2018-08-11 10:11:09 +08:00
FengZiYjun
77b3a0c67d fastNLP high-level interface:
- fastNLP interface for sequence labeling works
- fastNLP interface for text classification works
2018-08-11 09:20:09 +08:00
Coet
2075693273
Merge pull request #21 from fastnlp/dev/classify
Dev/classify
2018-08-10 19:45:37 +08:00
FengZiYjun
80a127cb24 merge jianghao's code 2018-08-09 21:57:53 +08:00
FengZiYjun
8e6db05339 changes to Trainer, Tester & Inference:
- rename "POSTrainer", "POSTester" to "SeqLabelTrainer", "SeqLabelTester"
- Trainer & Tester have NO relation with Action
- Inference owns independent "make_batch" & "data_forward"
- Conversion to Tensor & go into cuda are done in "make_batch"
- "make_batch" support maximum/minimum length
2018-08-08 20:40:44 +08:00
FengZiYjun
c1d7c5d7da changes to action, trainer and tester:
- rename "POSTrainer" to "SeqLabelTrainer"
- add text classification test data
- update make_batch in  Trainer and Tester
2018-08-07 19:18:56 +08:00
Yunfan Shao
cd5c1f41fb
Merge pull request #19 from choosewhatulike/master
add metrics
2018-08-06 22:00:10 +08:00
Yunfan Shao
defdfaadd2
Merge pull request #20 from choosewhatulike/fix_optim
fix optimizer
2018-08-06 21:58:57 +08:00
FengZiYjun
83f69b0e0f Combine make_batch for Trainer and Tester
- change parameter <seq_length-->mask> in loss function defined in seq model
- Trainer & Tester have Action as default parameter, shared static methods like make_batch
- add seq_len in make_batch of Inference
- add SeqLabelInfer, a subclass of Inference
- seq_labeling.py works
2018-08-06 20:15:31 +08:00
FengZiYjun
2c0079f3d5 changes to action, trainer and tester:
- Action collects shared operations: data_forward, mode, pad, make_batch
- Trainer and Tester receives Action as a parameter
- seq_labeling works in such setting
2018-08-03 21:29:07 +08:00
Coet
8f2d5f7170
Create __init__.py 2018-08-01 20:47:46 +08:00
FengZiYjun
743a6d7547 fix bugs in preprocessor 2018-08-01 10:10:55 +08:00
choosewhatulike
c90e7b0134 Merge branch 'master' of https://github.com/choosewhatulike/fastNLP 2018-08-01 00:32:31 +08:00
choosewhatulike
c42487f987 merge master 2018-08-01 00:24:37 +08:00
choosewhatulike
a077703c99 merge master 2018-08-01 00:20:14 +08:00
choosewhatulike
1548ee7ce2 add recall, f1-score 2018-08-01 00:09:09 +08:00
Coet
2c0e931771
Merge pull request #18 from fastnlp/dev/inference
A lot of changes.
2018-07-31 19:54:46 +08:00
FengZiYjun
8e3e6d4579 changes to batch methods
- [action] add k-means bucketing, partition sequences into buckets of nearly the same length
- [trainer] print train loss every 10 steps
- [loader] cws pku loader split sequence longer than max_seq_len into several shorter sequences
2018-07-31 10:11:44 +08:00
FengZiYjun
9aad8dff6e update 2018-07-30 20:31:48 +08:00