Skip to content
Open
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
2 changes: 1 addition & 1 deletion merpy/MER/get_entities.sh
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ get_entities_source () {
if [ -e "$source"_links.tsv ]; then
while read -r line; do
local label=$(cut -d$'\t' -f3- <<< "$line")
local text=$(sed "s/[^[:alnum:][:space:]()]/./g" <<< "$label") # Replace special characters
local text=$(sed "s/[^[:alnum:][:space:]()-]/./g" <<< "$label") # Replace special characters
text=$(sed -e 's/[[:space:]()@]\+/ /g' <<< "$text") # Remove multiple whitespace
text=$(sed -e 's/\.$//' -e 's/\. / /g' <<< "$text") # Remove full stops
text=$(tr '[:upper:]' '[:lower:]' <<< "$text") # Make text lowercase
Expand Down