Skip to content

Commit

Permalink
update rule counts
Browse files Browse the repository at this point in the history
  • Loading branch information
bminixhofer committed Jan 5, 2021
1 parent 6b60ca1 commit 9f50576
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ NLPRule currently supports English and German.

| | \|Disambiguation rules\| | \|Grammar rules\| | LT version |
|---------|--------------------------|-------------------|--------------|
| English | 801 (100%) | 3083 (~ 87%) | 5.1 |
| German | 464 (100%) | 2830 (~ 91%) | 5.1 |
| English | 843 (100%) | 3725 (~ 85%) | 5.2 |
| German | 486 (100%) | 2830 (~ 90%) | 5.2 |

## Usage

Expand Down
3 changes: 3 additions & 0 deletions scripts/approximate_rules.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
rules=$(cat $1 | grep "<rule.*" | wc -l)
rulegroups=$(cat $1 | grep "<rulegroup.*" | wc -l)
echo $(($rules-$rulegroups))

0 comments on commit 9f50576

Please sign in to comment.