Skip to content

Commit 6a77d03

Browse files
committed
update docstrings
1 parent 19aeeb4 commit 6a77d03

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

fuzzymatcher/record.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@
44
import re
55

66
class Record:
7+
"""
8+
The 'record' objects represents a row of a dataset.
9+
A row is represented as a dictionary called 'field dict', whose keys are the column (field) names
10+
and whose values are the column values.
11+
12+
The record object has methods to clean (homogenise) and tokenise these column values.
13+
The record object also has a dictionary similar to field dict that contains token misspellings
14+
"""
715

816
def __init__(self, field_dict, record_id, matcher):
917
self.orig_field_dict = field_dict

fuzzymatcher/tokencomparison.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
from fuzzywuzzy import fuzz
44

55
class TokenComparison:
6+
"""
7+
The tokencomparison object contains functions that check for other misspellings and 'close' matches
8+
"""
69

710
def __init__(self, fuzz_ratio_threshold = 80, number_fuzz_threshold = 1.01):
811
self.fuzz_ratio_threshold = fuzz_ratio_threshold

0 commit comments

Comments
 (0)