A NLP library that simplifies pattern finding
Project description
A SIMPLE pattern finder for strings, implemented in Python.
regex4dummies was made for lazy people! It allows you to easily parse strings and find simple and complex patterns. In fact, one of the key features of regex4dummies is that the library will automatically find patterns if you give it a mandatory word or phrase to look for. This can be a keyword or something more complex such as a sentence.
Please understand this library is currently under heavy development. It currently supports only a fraction of features it will allow programmers to use.
Features
Automatic pattern detection ( semantic and literal patterns )
Keyword searching to find phrases
Very versatile library, can be used to find simple and complex patterns ( semantic and literal )
Simple to use. Just install this library, and import it into whatever scripts you would like to use it with
Usage
To see how to use this library, please see the Wiki part of this Github repository. For a quick introduction, please see below.
# Import library
from regex4dummies import regex4dummies
# Setting variables & objects
strings = [ "Test String 1", "Test String 2", "Test String 3" ]
string_parser = regex4dummies()
# Find all of the literal patterns within each string and print the patterns
print regex4dummies.compare_strings( True, strings )
Installation
To install this library, run the following command.
$ pip install regex4dummies
Contributing
If you would like to contriubte, please fork the repository and create a PR with your feature update.
License
Please see LICENSE.txt for information about the MIT license
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
Hashes for regex4dummies-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c02079cec906bcb5070b3b061442422eab2348731f714b123467a2011da8489 |
|
MD5 | d75f5caff659cee6f52a201f21161b62 |
|
BLAKE2b-256 | 3394ca7e9b19550d46bf7a9cd8ff937073c77b8e630d36ee5983734f4975e6f3 |