GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — ossocr/reducer.py at master · QiangLi682/ossocr Expand file tree/ Copy pathreducer.pyMore file actions executable file ·25 lines (20 loc) · 577 Bytes / Copy pathreducer.pyFile metadata and controlsexecutable file ·25 lines (20 loc) · 577 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 #!/usr/bin/python """ reducer.py - take hadoop output and simplify results - art rhyno <http://projectconifer.ca/> (c) Copyright GNU General Public License (GPL) """ import sys # input comes from STDIN for hadoop processing for line in sys.stdin: line = line.strip() if len(line) > 0: try: char_cnt, filename, word, x0, y0, x1, y1 = line.split('\t', 7) x0 = int(x0) y0 = int(y0) x1 = int(x1) y1 = int(y1) print "%s %s %d %d %d %d" % (filename,word,x0,y0,x1,y1) except: line = '' |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |