summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.name>2019-01-25 16:04:07 +0000
committerNick White <git@njw.name>2019-01-25 16:04:07 +0000
commit97be6f42d53322118e45073f67cbdcb35441422a (patch)
treea4077b894e35217822fe4a6bc52be119f39ea0c0
parenta5d9f36716b1bb7b8590869175543829836e90f3 (diff)
Rename line-conf-avg to avg-lines
-rw-r--r--avg-lines/avg-lines.go (renamed from line-conf-avg/line-conf-avg.go)8
1 files changed, 3 insertions, 5 deletions
diff --git a/line-conf-avg/line-conf-avg.go b/avg-lines/avg-lines.go
index aba184b..160dd7c 100644
--- a/line-conf-avg/line-conf-avg.go
+++ b/avg-lines/avg-lines.go
@@ -1,7 +1,5 @@
package main
-// TODO: rename to avglines
-
import (
"flag"
"fmt"
@@ -17,7 +15,7 @@ import (
func main() {
flag.Usage = func() {
- fmt.Fprintf(os.Stderr, "Usage: line-conf-avg [-html] [-nosort] [prob1] [hocr1] [prob2] [...]\n")
+ fmt.Fprintf(os.Stderr, "Usage: avg-lines [-html] [-nosort] [prob1] [hocr1] [prob2] [...]\n")
fmt.Fprintf(os.Stderr, "Prints a report of the average confidence for each line, sorted\n")
fmt.Fprintf(os.Stderr, "from worst to best.\n")
fmt.Fprintf(os.Stderr, "Both .hocr and .prob files can be processed.\n")
@@ -26,8 +24,8 @@ func main() {
fmt.Fprintf(os.Stderr, "option.\n\n")
flag.PrintDefaults()
}
- var usehtml = flag.Bool("html", false, "output html page")
- var nosort = flag.Bool("nosort", false, "don't sort lines by confidence")
+ var usehtml = flag.Bool("html", false, "Output html page")
+ var nosort = flag.Bool("nosort", false, "Don't sort lines by confidence")
flag.Parse()
if flag.NArg() < 1 {
flag.Usage()