diff options
-rw-r--r-- | parse/hocr/hocr.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/parse/hocr/hocr.go b/parse/hocr/hocr.go index 3599bef..81250a9 100644 --- a/parse/hocr/hocr.go +++ b/parse/hocr/hocr.go @@ -80,7 +80,7 @@ func noText(s string) bool { return len(t) == 0 } -func parseIt(b []byte) (Hocr, error) { +func Parse(b []byte) (Hocr, error) { var hocr Hocr err := xml.Unmarshal(b, &hocr) @@ -160,7 +160,7 @@ func GetLineDetails(hocrfn string) (parse.LineDetails, error) { return newlines, err } - h, err := parseIt(file) + h, err := Parse(file) if err != nil { return newlines, err } |