erted from https://github.com/eliasdabbas/advertools
&#34;&#34;&#34;
import os
import json
import re
from gatenlp.processing.annotator import Annotator

PATH_E2I = os.path.join(os.path.dirname(__file__), &#34;emojis2info.json&#34;)
PATH_ER = os.path.join(os.path.dirname(__file__), &#34;emojiregex.txt&#34;)

# load the emoji info when the module is loaded and share the info among all annotators
with open(PATH_E2I, &#34;rt&#34;, encoding=&#34;utf-8&#34;) as infp:
    EMOJI2INFO = json.load(infp)

with open(PA