Xipeng Qiu
bf5d1c347b
Merge branch 'master' into add_field_support
7 years ago
Xipeng Qiu
47772a88be
Merge pull request #74 from 2017alan/master
Add weight initialization for models.
7 years ago
Coet
ef3c753e0d
Update test_seq_label.py
7 years ago
FengZiYjun
ad044ef4c7
fix test path to pass py.test
7 years ago
FengZiYjun
f2fc98b5e6
add Field support in Predictor:
- apply DataSet in Predictor; remove sub-predictors; add "task" argument to specify which task to predict, as how Trainer/Tester did.
- remove Action class
- add helper function for DataSet, to create DataSet easily
- more code comments
- clean up unnecessary codes
- add unit tests for Batch, Predictor, Preprocessor, Trainer, Tester
7 years ago
FengZiYjun
05af2e7544
Introduce Fields concept to eliminate the use of different sub-trainers/sub-testers.
- update LabelField's to_tensor method to support int & str single label
- update preprocessor's convert_to_dataset method to support single label inputs
- introduce "task" in Trainer/Tester's data_forward, Tester's evaluate and metrics methods
- in cnn_text_classification.py, change the name of the argument of forward
- in sequence_modeling.py, change the name of the argument of forward
- minor adjustments in test codes
- text_classify.py works
7 years ago
Yige XU
5c671078b6
Update preprocess.py
7 years ago
2017alan
b3e8db74a6
add self_attention for yelp classification example.
7 years ago
2017alan
7bea47681b
set encoding model utf-8,otherwise in some computer it will compile failed.
7 years ago
2017alan
a89875df1e
add initial parameters
7 years ago
2017alan
5960aba9cb
change the code to do with sentence with padding tokens.
7 years ago
2017alan
c24d01d50f
fix a bug in label2index dict.
7 years ago
2017alan
8c13c28f0c
add nll loss
7 years ago
FengZiYjun
758f0c0bd6
Introduce Field concept to optimize data representation.
- add DataSet, Instance, Field to represent data in different levels
- encapsulate batching method in Batch class
- modify samplers in action.py to fit Batch
- preprocessor.run returns DataSet, instead of list
- Use Batch in Trainer/Tester
- add required_arg "task" in Trainer/Tester
- remove SeqLabelTrainer/SeqLabelTester dependencies successfully. They empty classes to deprecate.
- modify SeqLabeling model, add another argument in forward, in order to compute mask inside model
- test\model\seq_labeling.py works
7 years ago
yunfan
bc04b3e7fd
add basic Field support
7 years ago
Yunfan Shao
82502aa67d
Merge pull request #69 from choosewhatulike/format
format test folder
7 years ago
yunfan
4dfe7aaacc
format test folder
7 years ago
lyhuang18
4846cfd9a8
Merge pull request #68 from lyhuang18/docs
add mathjax and update pictures
7 years ago
lyhuang
a521fdffd1
add mathjax and update pictures
7 years ago
lyhuang18
a5abee80a2
Merge pull request #3 from fastnlp/master
update
7 years ago
Coet
4bcfc5f930
Merge pull request #65 from xuyige/test_code
add config saver
7 years ago
xuyige
aac7982e93
fix a bug in config saver testing code
7 years ago
xuyige
6ddf5fcdcd
update test code for testing config saver
7 years ago
xuyige
7138ff210f
update config file for testing code, add more sections for testing.
7 years ago
xuyige
bbb02d0c1f
clean up the code in config saver
7 years ago
xuyige
534bc67521
overwrite '==' operator and '!=' operator in ConfigSection class
7 years ago
xuyige
66b471c7fb
Merge remote-tracking branch 'origin/test_code' into test_code
7 years ago
xuyige
48c1e8700b
fix code style of config saver
7 years ago
Coet
7567053d76
Merge pull request #66 from lyhuang18/test2
add requirements: tensorboardX
7 years ago
lyhuang
a7fa63a0db
add tensorboardX
7 years ago
lyhuang
6a77731d86
add tensorboardX
7 years ago
Yige XU
be2f4aade3
Merge branch 'master' into test_code
7 years ago
xuyige
12f06d09d2
clean up code in test loader
7 years ago
xuyige
7fb2bcc78c
update config loader
7 years ago
xuyige
7c57bc6fc9
fix a bug for config saver
7 years ago
xuyige
58ccb6576f
clean up codes
7 years ago
xuyige
476988573b
add test code for testing config saver
7 years ago
xuyige
2dd2f0c8f4
update config file for test
7 years ago
xuyige
edd9dedb5d
add config saver
7 years ago
lyhuang18
43c09fca5c
Merge pull request #2 from fastnlp/master
merge
7 years ago
Coet
49ad966c5f
Merge pull request #60 from KuNyaa/master
add tensorboardX for loss visualization
7 years ago
Coet
ee2f98fce1
Merge pull request #62 from fastnlp/text_classify_interface
Text Classification Interface
7 years ago
FengZiYjun
5309c98846
Text classification interface is ready.
- fix issue #58 , use path.join instead of +
- modify description and version in setup.py
- docstring in core/ follows RestructureText format
7 years ago
KuNya
68b63fb071
add graph summary in _train_step
7 years ago
Coet
63c687d906
Merge pull request #54 from fastnlp/pos_tag_service
CWS+POS tag interface
7 years ago
Zhen Ke
a665ddf909
Merge pull request #56 from keezen/master
Rewrite classification model and add initialization for conv_maxpool module
7 years ago
Coet
a13b8e5c82
Merge branch 'master' into pos_tag_service
7 years ago
KuNya
baf17892a7
add tensorboardX for loss visualization
7 years ago
Xipeng Qiu
4f371446c2
Merge pull request #59 from lyhuang18/test2
update docs
7 years ago
lyhuang
34c78cb9de
update docs
move example to docs
7 years ago