Skip to content

Commit

Permalink
Fix issue #790
Browse files Browse the repository at this point in the history
Using getattr() for the cases in which attribute name is not literally 'Spelling'
  • Loading branch information
stannam committed Dec 2, 2021
1 parent 138b6a6 commit f055392
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion corpustools/funcload/functional_load.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ def minpair_fl_speed(corpus_context, segment_pairs,
if cur % 100 == 0:
call_back(cur)

word = (w.Spelling, getattr(w, corpus_context.sequence_type), w.Frequency)
word = (getattr(w, w._spelling_name), getattr(w, corpus_context.sequence_type), w.Frequency)
if seg in word[1]:
neutralized_words = neutralize(seg, word[1], environment_filter, minimal_pair_definition)
for nw in neutralized_words:
Expand Down

0 comments on commit f055392

Please sign in to comment.