def getWordIdx(token, word2Idx):
    'Returns from the word2Idex table the word index for a given token'
    if (token in word2Idx):
        return word2Idx[token]
    elif (token.lower() in word2Idx):
        return word2Idx[token.lower()]
    return word2Idx['UNKNOWN_TOKEN']
Returns from the word2Idex table the word index for a given token
def getWordIdx(token, word2Idx):
    
    if (token in word2Idx):
        return word2Idx[token]
    elif (token.lower() in word2Idx):
        return word2Idx[token.lower()]
    return word2Idx['UNKNOWN_TOKEN']