[](https://travis-ci.org/jeroyang/ncgocr)
[](https://pypi.python.org/pypi/ncgocr)
- Named Concept Gene Ontology Concept Recognition
- Automatic recognize Gene Ontology (GO) concepts from context.
## Installation
Using 'pip' to install the Python module
```bash
$ pip install -U ncgocr
```
## Usage
```python
from ncgocr import Craft, GoData, NCGOCR, Corpus, evaluate
craft = Craft('data')
corpus = craft.get_corpus()
goldstandard = craft.get_goldstandard()
print('Loading GO...')
godata = GoData('data/craft-1.0/ontologies/GO.obo')
print('Initiating NCGOCR...')
ncgocr = NCGOCR(godata)
print('Training the model...')
ncgocr.train(corpus, goldstandard)
print('Loading the testing corpus...')
corpus_name = 'testing corpus'
testing_corpus = Corpus.from_dir('data/craft-1.0/articles/txt/', corpus_name)
print('predicting the results...')
result = ncgocr.process(testing_corpus)
print('Show the first 10 results...')
print(result.to_list()[:10])
print('Evaluate the results...')
report = evaluate(result, goldstandard, 'Using the training corpus as the testing corpus')
print(report)
```
## License
* Free software: MIT license
Metadata
Release files for ncgocr 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ncgocr-1.0.2.tar.gz | 3.7 MB | Without provenance | Details for ncgocr-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ncgocr-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for ncgocr-1.0.2-py3-none-any.whl |
Total release size: 3.8 MB
Release files / ncgocr-1.0.2.tar.gz
| Download URL | ncgocr-1.0.2.tar.gz |
|---|---|
| Size | 3.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
29b4ab29474d07c1779c56bf51b1cc553b9e7bc9db06740fd12106b28af432b0
|
|
BLAKE2b-256 checksum How to use checksums |
25bdd78c8f72bd65acba797906c802224404f53adf3f26afc3d6a99cf5ba9ef0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / ncgocr-1.0.2-py3-none-any.whl
| Download URL | ncgocr-1.0.2-py3-none-any.whl |
|---|---|
| Size | 78.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d6ed959b747be4fbf3281c4984e5d40ad65b9ee22aa551468591bbafb870c042
|
|
BLAKE2b-256 checksum How to use checksums |
fe371d063d20311e213f55bffe093656f6bf8ad70712e0deaa5f2d60e927806b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for ncgocr 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.