Coet
63c687d906
Merge pull request #54 from fastnlp/pos_tag_service
CWS+POS tag interface
6 years ago
Zhen Ke
a665ddf909
Merge pull request #56 from keezen/master
Rewrite classification model and add initialization for conv_maxpool module
6 years ago
Coet
a13b8e5c82
Merge branch 'master' into pos_tag_service
6 years ago
KuNya
baf17892a7
add tensorboardX for loss visualization
6 years ago
Xipeng Qiu
4f371446c2
Merge pull request #59 from lyhuang18/test2
update docs
6 years ago
lyhuang
34c78cb9de
update docs
move example to docs
6 years ago
lyhuang
292853c84a
Merge branch 'master' into test2
6 years ago
lyhuang18
c80ae39fb3
Merge pull request #1 from fastnlp/master
update
6 years ago
xuyige
dbf1e492fd
add config saver
6 years ago
Xipeng Qiu
961a321712
Merge pull request #55 from fastnlp/add-more-badges
add more badges in README
6 years ago
Ke Zhen
de89674436
Merge remote-tracking branch 'upstream/master'
6 years ago
Ke Zhen
d910ae3c77
Rewrite classification model, add intialization for conv_maxpool
6 years ago
Coet
e82ec43b37
Update README.md
6 years ago
FengZiYjun
31eac4a795
fix bug in preprocessor: reported in issue 47
6 years ago
FengZiYjun
6f59384d6c
pass CI
6 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
6 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.
6 years ago
Coet
3a9b5d17e3
Merge pull request #52 from fastnlp/cws_service
Chinese word segmentation interface
6 years ago
FengZiYjun
0430067faf
update
6 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
6 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.
6 years ago
Yige XU
9dc32f68a7
Merge pull request #50 from h00Jiang/master
fix a bug (when restore the pickle_file , cannot restore dev.pkl)
6 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
6 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
6 years ago
Coet
b76d3d0827
Merge pull request #51 from xuyige/test_code
Test code
6 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.
6 years ago
xuyige
beee885689
add test code for testing variational rnn
6 years ago
xuyige
2bc54c6d17
add test code for testing masked rnn
6 years ago
xuyige
b362a810e0
fix a bug in testing code
6 years ago
xuyige
c77621292b
fix a bug in char_language_model.py
6 years ago
xuyige
650838d118
fix a bug in step() of MaskedRNNBase
6 years ago
h00Jiang
18586c9c6d
fix a bug (when init_emb is not None , get an error)
6 years ago
h00Jiang
5a70d65591
fix a bug (when restore the pickle_file , cannot restore dev.pkl)
6 years ago
lyhuang
3fde835638
docs/requirements.txt
6 years ago
lyhuang
96cf033689
docs/
6 years ago
lyhuang
41c7524d4f
docs/requirements.txt
6 years ago
xuyige
8899b44add
fix a bug
6 years ago
xuyige
7a54a20908
add codes testing utils
6 years ago
xuyige
246908bf45
find a bug that bilinear must have bias
6 years ago
xuyige
08e924b54f
add test code for testing preprocess.py
6 years ago
xuyige
812160493e
add test code for testing trainer
6 years ago
xuyige
e58295d657
add test code for testing other modules
6 years ago
xuyige
ff37b03670
add test code for testing loader
6 years ago
xuyige
d6d92010e0
add test code for testing action.py
6 years ago
Coet
96391d6ab3
Merge pull request #46 from fastnlp/modify-readme-example
modify readme example
6 years ago
Xipeng Qiu
47ddb24d1d
modify readme example
6 years ago
Coet
9b7ad27616
Merge pull request #44 from choosewhatulike/master
add MLP decoder
6 years ago
Coet
aea53c1833
Merge pull request #43 from FengZiYjun/master
New Trainer Initialization Interface
6 years ago
choosewhatulike
b54713d283
add MLP decoder
6 years ago
FengZiYjun
2df8eb740a
Updates to core, loader:
- add Loss, Optimizer
- change Trainer & Tester initialization interface: two styles of definition provided
- handle Optimizer construction and loss function definition in a hard manner
- add argparse in task-specific scripts. (seq_labeling.py & text_classify.py)
- seq_labeling.py & text_classify.py work
6 years ago