Skip to content

Commit

Permalink
Merge pull request #377 from asnota/gender_and_universal_bias
Browse files Browse the repository at this point in the history
Gender and universal bias
  • Loading branch information
kaustubhdhole authored Jul 22, 2022
2 parents a458d95 + fe24cf6 commit a5d639e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nlaugmenter/filters/gender_bias/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def flag_sentences(
flagged_sentences = []

# Read names
f = open("filters/gender_bias/lexicals.json")
f = open("nlaugmenter/filters/gender_bias/lexicals.json")
data = json.load(f)

# Define the words, that represent feminine and masculine groups in both languages
Expand Down
2 changes: 1 addition & 1 deletion nlaugmenter/filters/universal_bias/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def flag_sentences(self, sentences):
flagged_sentences = []

# Read json
f = open("filters/universal_bias/lexicals.json")
f = open("nlaugmenter/filters/universal_bias/lexicals.json")
data = json.load(f)

# Retrieve relevant data extracts
Expand Down

0 comments on commit a5d639e

Please sign in to comment.