semvec/pypi-packages huggingface dataset:
hocr-spec 0.2.0
Implementation of the hOCR specs
License: MIT

# hocr-spec-python
Validation of hOCR close to the specs

<!-- BEGIN-MARKDOWN-TOC -->
* [Rationale](#rationale)
* [Installation](#installation)
* [Command line interface](#command-line-interface)
* [API example](#api-example)

<!-- END-MARKDOWN-TOC -->

## Rationale

[hOCR](https://github.com/kba/hocr-spec) is a flavor of HTML for encoding
the results of Optical Character Recognition (OCR) engines. It is supported by
most OCR engines, such as
[tesseract](https://github.com/tesseract-ocr/tesseract),
[ocropus/ocropy](https://github.com/tmbdev/ocropy) and
[kraken](https://github.com/mittagessen/kraken).

The [hOCR specifications](https://github.com/kba/hocr-spec) is at the same time
very simple (hOCR is just HTML) and hard to implement, due to its terseness and
lack of up-to-date code samples. This project aims to implement the rules
defined by the specs from the ground up to serve as a validation tool and
reference implementation. It is meant to help hOCR implementers and support
tools like [hocr-tools](https://github.com/tmbdev/hocr-tools).

## Installation

Use pip:

```sh
# System-wide:
sudo pip install [--user] hocr-spec
# For current user:
pip install --user hocr-spec
```

From source:

```sh
git clone https://github.com/kba/hocr-spec-python
cd hocr-spec-python
# System-wide:
sudo python setup.py install
# For current user:
python setup.py install --user
```

## Command line interface

<!-- BEGIN-EVAL echo; ./hocr-spec -h |sed 's/^/    /' -->

    usage: hocr-spec [-h] [--format {text,bool,ansi,xml}]
                     [--profile {relaxed,standard}]
                     [--implicit_capabilities CAPABILITY]
                     [--skip-check {attributes,classes,metadata,properties}]
                     [--parse-strict] [--silent]
                     sources [sources ...]

    positional arguments:
      sources               hOCR file to check or '-' to read from STDIN

    optional arguments:
      -h, --help            show this help message and exit
      --format {text,bool,ansi,xml}, -f {text,bool,ansi,xml}
                            Report format
      --profile {relaxed,standard}, -p {relaxed,standard}
                            Validation profile
      --implicit_capabilities CAPABILITY, -C CAPABILITY
                            Enable this capability. Use '*' to enable all
                            capabilities. In addition to the 'ocr*' classes, you
                            can use ['ocrp_dir', 'ocrp_font', 'ocrp_lang',
                            'ocrp_nlp', 'ocrp_poly']
      --skip-check {attributes,classes,metadata,properties}, -X {attributes,classes,metadata,properties}
                            Skip one check
      --parse-strict        Parse HTML with less tolerance for errors
      --silent, -s          Don't produce any output but signal success with exit
                            code.

<!-- END-EVAL -->

## API example

```python
from hocr_spec import HocrValidator

validator = HocrValidator()
report = validator.validate('/path/to/sample.hocr')
print(report.format('xml'))
# <report valid='false'>...</report>
```
ponzischeme-game 0.0.3
ponzischeme_game is a python package for handling the game state of the game Ponzi Scheme.
License: MIT
Requires Python: >=3.6

# ponzischeme_game
Package for Ponzi scheme game state.
This package is used in:
- Ponzi Scheme web app (https://github.com/peter-de-boer/ponzischeme_webapp)
- Openspiel API (to be implemented)
geofinder 1.0.8
GEDCOM Genealogy address validation and geocoding using geonames.org data
License: MIT


# GeoFinder 
GeoFinder reads the place names in a GEDCOM or Gramps XML genealogy file, validates and corrects them and adds their latitude and longitude.  For unrecognized places, it supports wildcard searches and phonetic searches from the 20M entry geoname.org database.  

<a name="features"></a>
## Features  
* Rich place name database from geonames.org optimized for Genealogy including cemeteries, historic locations, and religious locations.
* Designed for correcting large GEDCOM files
* Automatic matching wherever possible adds missing information such as missing state/province or county.
* Cleans up and standardizes placenames
* Output is to a new GEDCOM file
* Adds latitude/longitude 
* Wildcard search
* Phonetic search
* Highlights locations in the US and Canada where the event date is before European settlement


[See User Guide Wiki for details](https://github.com/corb555/GeoFinder/wiki/User-Guide)