From 6e08494a8883a8e304ef02ea352a11776ab2294c Mon Sep 17 00:00:00 2001 From: Nick White Date: Thu, 24 Jan 2019 17:56:14 +0000 Subject: Merge bucket-lines-{prob,hocr} into one tool called bucket-lines, that uses the filename extension to determine how to process the lines --- parse/hocr/hocr.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'parse/hocr/hocr.go') diff --git a/parse/hocr/hocr.go b/parse/hocr/hocr.go index f7cac05..c03b73a 100644 --- a/parse/hocr/hocr.go +++ b/parse/hocr/hocr.go @@ -1,9 +1,10 @@ package hocr -// TODO: consider making GetLineDetails() a function of Hocr, so could do a -// similar thing with prob format files too, and then fire them both -// off a generic interface, potentially. -// TODO: Parse line name to zero pad line numbers, so they come out in the correct order +// TODO: Parse line name to zero pad line numbers, so they can +// be sorted easily +// TODO: have same filename format as .prob uses, so include base +// dirname, and don't include line numbers if there's only +// one line in the hocr import ( "encoding/xml" -- cgit v1.2.1-24-ge1ad