-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python code refactored; a small tool added (more to come)
git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@661 ab42f6e0-554d-0410-b580-99e487e6eeb2
- Loading branch information
1 parent
6ce3d27
commit cd97152
Showing
5 changed files
with
282 additions
and
203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/python | ||
import os | ||
import sys | ||
import string | ||
import metrics | ||
|
||
if __name__ == "__main__": | ||
if len(sys.argv) == 4: | ||
pnm,psm = metrics.mismatches(sys.argv[3],sys.argv[1],sys.argv[2]) | ||
print 'Mismatches:',pnm,'+',psm,'=',pnm+psm | ||
else: | ||
print '''This is the shortest possible version of Grammar Diff Tool. | ||
Usage:''' | ||
print ' ',sys.argv[0],'<bgf1>','<bgf2>','<comparator>' | ||
sys.exit(1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.