Skip to main content

Поиск токенов, относящихся к датам, по регулярным выражениям

Project description

Библиотека написана в рамках хакатона школы 21 совместно с ленинской библиотекой

Предназначена для матчинга извлеченных из произвольного текста токенов, относящихся к датам, с неким языком регулярных выражений.

Пример:

from datesearch import search

print(search("ночью, в двадцать минут третьего", 'ne'))

Вывод программы:

[Number(20), Period("m")]

По полученным спискам токенов гораздо проще уже находить нужные комбинации чисел, промежутков времени и прочих видов токенов.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

datesearch-0.0.1.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

datesearch-0.0.1-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file datesearch-0.0.1.tar.gz.

File metadata

  • Download URL: datesearch-0.0.1.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.0

File hashes

Hashes for datesearch-0.0.1.tar.gz
Algorithm Hash digest
SHA256 39d200149a177e2f095872df5e69ed3fedba18305c889b183167a0dbf031a5ab
MD5 272c02cccdef19184210a7a968f5994f
BLAKE2b-256 c4ab529081320345cd4c6c5094c2d1bc1fb854b58f693d174aa8e4c8abf4dc57

See more details on using hashes here.

File details

Details for the file datesearch-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: datesearch-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.0

File hashes

Hashes for datesearch-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5e344fd55b1ff3433118bd652984847007e422d97127e57b7d98c391f50167b7
MD5 04de2c7f8f7fa13f9786545181043e42
BLAKE2b-256 c08468c5d2ec8873121a84f7cdfcf584a9a6ef4ffc35d214eeff8898f6d02b77

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page