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
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
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
lyhuang
292853c84a
Merge branch 'master' into test2
7 years ago
lyhuang18
c80ae39fb3
Merge pull request #1 from fastnlp/master
update
7 years ago
xuyige
dbf1e492fd
add config saver
7 years ago
Xipeng Qiu
961a321712
Merge pull request #55 from fastnlp/add-more-badges
add more badges in README
7 years ago
Ke Zhen
de89674436
Merge remote-tracking branch 'upstream/master'
7 years ago
Ke Zhen
d910ae3c77
Rewrite classification model, add intialization for conv_maxpool
7 years ago
Coet
e82ec43b37
Update README.md
7 years ago
FengZiYjun
31eac4a795
fix bug in preprocessor: reported in issue 47
7 years ago
FengZiYjun
6f59384d6c
pass CI
7 years ago
FengZiYjun
57911f771a
- clean up unused codes
- improve code comments
- BaseLoader & its subclasses does not need a data name any more
- update file tree
- add setup.py
7 years ago
FengZiYjun
32a036e8e6
[fix] drop "data" in Tester.make_batch; correct spelling of "show_metrics"
[add] PeopleDailyCorpusLoader, to parse PeopleDaily Corpus
[update] add CWS + POS_tag interface at FastNLP, see example in test_fastNLP.py
[update] modify README.md and readme_example.py to the latest version.
7 years ago
Coet
3a9b5d17e3
Merge pull request #52 from fastnlp/cws_service
Chinese word segmentation interface
7 years ago
FengZiYjun
0430067faf
update
7 years ago
FengZiYjun
501ffb26c5
optimize CWS example
- see test_fastNLP.py
- update interpret_word_seg_results in fastnlp.py
- delete useless data to increase git clone speed
7 years ago
FengZiYjun
ab55f25e20
Updates to Trainer/Tester/fastnlp
1. Tester has a parameter "print_every_step" to control printing. print_every_step == 0 means NO print.
2. Tester's evaluate return (list of) floats, rather than torch.cuda.tensor
3. Trainer also has a parameter "print_every_step". The same usage.
4. In training, validation steps are not shown.
5. Updates to code comments.
6. fastnlp.py is ready for CWS. test_fastNLP.py works.
7 years ago
Yige XU
9dc32f68a7
Merge pull request #50 from h00Jiang/master
fix a bug (when restore the pickle_file , cannot restore dev.pkl)
7 years ago
FengZiYjun
9d6b0daa99
Prepare for CWS service:
- specify the name of the config file and the name of corresponding section where model init params store.
- fastnlp.py needs load_pickle to get dictionary size and the number of labels
- other minor adjustments
7 years ago
FengZiYjun
625b72691b
edit fastnlp run method, get ready for CWS
- change inputs of fastnlp from string to list of strings
- adopt flexible outputs according to diff tasks
7 years ago
Coet
b76d3d0827
Merge pull request #51 from xuyige/test_code
Test code
7 years ago
Coet
50b5345539
check if data_dev.pkl exists
In line 100, add a if statement to check whether there exists a file named "data_dev.pkl" in the pickle path. If not, the file won't be loaded.
7 years ago
xuyige
beee885689
add test code for testing variational rnn
7 years ago
xuyige
2bc54c6d17
add test code for testing masked rnn
7 years ago
xuyige
b362a810e0
fix a bug in testing code
7 years ago
xuyige
c77621292b
fix a bug in char_language_model.py
7 years ago
xuyige
650838d118
fix a bug in step() of MaskedRNNBase
7 years ago