[735bb5]: / test / features / test_punct_distance_feature.py

Download this file

19 lines (12 with data), 495 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
# Local Dependencies
# ------------------
from features.punct_distance_feature import PunctuationFeature
# Tests
# ------
def test_get_feature_names():
punct = PunctuationFeature()
assert punct.get_feature_names() == ["punct_dist"]
def test_create_punctuation_distance(n2c2_small_collection):
punct = PunctuationFeature()
distances = punct.create_punctuation_distance_feature(n2c2_small_collection)
assert distances.shape == (len(n2c2_small_collection), 1)