Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

W4D2 HW(very preliminary) #9

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions .idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/textminer.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

544 changes: 544 additions & 0 deletions .idea/workspace.xml

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@



# Text Miner

## Description
Expand Down
Binary file added textminer/.DS_Store
Binary file not shown.
9 changes: 9 additions & 0 deletions textminer/extractor.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import re


def phone_numbers(text):


#hard mode
def emails(text):

43 changes: 43 additions & 0 deletions textminer/separator.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import re



def words(input):




def phone_number(input):



def money(input):



def test_zip(input):



def date(input):





#hard mode
def hard_date(input):



def email(input):



def address(input):






Binary file added textminer/tests/.DS_Store
Binary file not shown.
53 changes: 53 additions & 0 deletions textminer/validator.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
import re



def binary(number):
return re.match(r"[01]+", number)

def binary_even(number):
return re.match(r"[02468]+$", number)


def hex(number):
return re.match(r"\A[0-9A-Fa-f]+\Z", number)


def word():




def words():



def phone_numbers():


def money():




def zip():



def date():


#Hard mode

def hard_date():



def email():



def address():