Extract references from a multitude of data sources
Project description
from matchescu.data_sources import CsvDataSource
matchescu-reference-extraction
This package implements an entity reference extraction subsystem for entity resolution. The main concepts that are relevant here are:
- a generic attribute-based data record implementation (can access data by
strorintkey), - various
data_sourceswhich support reading records from different data stores, and - generic
extraction_enginesthat convert data records to entity references.
Development
Run the following commands to ensure you have a proper environment.
$ pyenv install 3.12
$ poetry install
$ poetry run pytest
When you contribute code, open a new feature/* or hotfix/* branch.
Usage
from matchescu.data_sources import CsvDataSource
from matchescu.extraction import Traits
traits = list(
Traits().int(["id"])
.string(["name", "description", "manufacturer"])
.currency(["price"])
)
csv = CsvDataSource("./path/to/csv/file", list(traits))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file matchescu_reference_extraction-0.6.2.tar.gz.
File metadata
- Download URL: matchescu_reference_extraction-0.6.2.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.12.7 Linux/6.8.0-1021-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4398bc68d55aef6bb746b729d0cca3f4ae12a55f1cbaf583c70558e3736065b7
|
|
| MD5 |
d25b9a54f6cad39654d8f4900cb7b019
|
|
| BLAKE2b-256 |
a2c7b9d36666890bd3728159d3e0f286c3b3550cbfdc40fe0945f344f65f6de0
|
File details
Details for the file matchescu_reference_extraction-0.6.2-py3-none-any.whl.
File metadata
- Download URL: matchescu_reference_extraction-0.6.2-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.12.7 Linux/6.8.0-1021-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f2f36ab54ed525c64427c00de3f9035f15e0672722d316774bf790d2597b21e
|
|
| MD5 |
4bf89c407140255d64cd45ec7503424b
|
|
| BLAKE2b-256 |
3dac3a4b9f63520a0986f6a29932c9c516e72025d72ed10625eb59786abb70c8
|