Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
hailiang-wang committed Mar 16, 2018
1 parent 606de01 commit cbbe4d3
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
23 changes: 21 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,37 @@ http://www.hankcs.com/nlp/corpus/chinese-treebank.html

## Run

Train model.
### Install deps

依赖: **py2.7**

```
pip install -r requirements.txt
```

### Train model

```
admin/train.sh
```

Test model.
### Test model

```
admin/test.sh
```

results:

```
I0316 18:49:02.500869 140736085984064 eager.py:140] test result: sgood[15.0], sbad[5.0]
I0316 18:49:02.501015 140736085984064 eager.py:144] accuracy: 0.814004554327
I0316 18:49:02.501211 140736085984064 eager.py:145] complete: 0.493981704381
I0316 18:49:02.665308 140736085984064 eager.py:147] recall: 0.797656997131
I0316 18:49:02.670641 140736085984064 eager.py:148] precision: 0.814004554327
I0316 18:49:02.670816 140736085984064 eager.py:149] assigned: 0.979917118266
```

# Give credits to

[Transition Based Dependency Parsers](https://www.cs.bgu.ac.il/~yoavg/software/transitionparser/)
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
absl-py==0.1.10

0 comments on commit cbbe4d3

Please sign in to comment.