Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
yifanmai committed Aug 11, 2023
1 parent 09a408d commit 6f25042
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/helm/proxy/clients/mechanical_turk_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
def replace_emoji_characters(s: str) -> str:
"""Replace 4-byte characters with HTML spans with bytes as JSON array
This function takes a Unicode string containing 4-byte Unicode
This function takes a Unicode string that may contain 4-byte Unicode
characters, e.g. "hi😀😀", and replaces each 4-byte character with an
HTML span with the 4 bytes encoded as a HTML entity,
e.g. "hi😀😀"
Args:
s (Unicode string): String that main contain emojis e.g. "hi😀😀"
s (Unicode string): String that may contain emojis e.g. "hi😀😀"
Returns:
Unicode string with all 4-byte Unicode characters in the source
string replaced with HTML entities e.g. "hi😀😀"
Expand Down

0 comments on commit 6f25042

Please sign in to comment.