summaryrefslogtreecommitdiff
path: root/lib/hocr/hocr.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/hocr/hocr.go')
-rw-r--r--lib/hocr/hocr.go24
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/hocr/hocr.go b/lib/hocr/hocr.go
index 0d10819..bbcf8a2 100644
--- a/lib/hocr/hocr.go
+++ b/lib/hocr/hocr.go
@@ -12,27 +12,27 @@ type Hocr struct {
}
type OcrLine struct {
- Class string `xml:"class,attr"`
- Id string `xml:"id,attr"`
- Title string `xml:"title,attr"`
+ Class string `xml:"class,attr"`
+ Id string `xml:"id,attr"`
+ Title string `xml:"title,attr"`
Words []OcrWord `xml:"span"`
- Text string `xml:",chardata"`
+ Text string `xml:",chardata"`
}
type OcrWord struct {
- Class string `xml:"class,attr"`
- Id string `xml:"id,attr"`
- Title string `xml:"title,attr"`
+ Class string `xml:"class,attr"`
+ Id string `xml:"id,attr"`
+ Title string `xml:"title,attr"`
Chars []OcrChar `xml:"span"`
- Text string `xml:",chardata"`
+ Text string `xml:",chardata"`
}
type OcrChar struct {
- Class string `xml:"class,attr"`
- Id string `xml:"id,attr"`
- Title string `xml:"title,attr"`
+ Class string `xml:"class,attr"`
+ Id string `xml:"id,attr"`
+ Title string `xml:"title,attr"`
Chars []OcrChar `xml:"span"`
- Text string `xml:",chardata"`
+ Text string `xml:",chardata"`
}
// Returns the confidence for a word based on its x_wconf value