<commit_before># PyNER 

The Python interface to the Stanford Named Entity Recognizer.

## Installation

    $ python setup.py install

## Basic Usage

    >>> import ner
    >>> tagger = ner.HttpNER(host='localhost', port=8080)
    >>> tagger.get_entities("University of California is located in California, United States")
    {'LOCATION': ['California', 'United States'],
     'ORGANIZATION': ['University of California']}
    >>> tagger.json_entities("Alice went to the Museum of Natural History.")<commit_msg>Add link to the NER repo.<commit_after># PyNER 

The Python interface to the [Stanford Named Entity Recognizer](https://github.com/dat/stanford-ner).

## Installation

    $ python setup.py install

## Basic Usage

    >>> import ner
    >>> tagger = ner.HttpNER(host='localhost', port=8080)
    >>> tagger.get_entities("University of California is located in California, United States")
    {'LOCATION': ['California', 'United States'],
     'ORGANIZATION': ['University of California']}
    >>> tagger.json_entities("Alice went to the Museum of Natural History.")
{'fraction_non_alphanumeric': 0.12974976830398516, 'fraction_numerical': 0.0074142724745134385, 'mean_word_length': 4.320197044334975, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 27, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2780526', 'n_tokens_mistral': 319, 'n_tokens_neox': 297, 'n_words': 98}