scripts/preprocess.py
def lemmatize_lyrics(tokens):
    """
    Lemmatizes tokens using NLTK's lemmatizer tool.
    """
    lemmatized = [nltk.stem.WordNetLemmatizer().lemmatize(t) for t in tokens]
    return lemmatized

    Lemmatizes tokens using NLTK's lemmatizer tool.
    
Lemmatizes tokens using NLTK's lemmatizer tool.
Lemmatizes tokens using NLTK ' s lemmatizer tool .
def lemmatize_lyrics(tokens):
    lemmatized = [nltk.stem.WordNetLemmatizer().lemmatize(t) for t in tokens]
    return lemmatized
def lemmatize_lyrics ( tokens ) : lemmatized = [ nltk . stem . WordNetLemmatizer ( ) . lemmatize ( t ) for t in tokens ] return lemmatized
Lemmatizes tokens using NLTK's lemmatizer tool.
Lemmatizes tokens using NLTK ' s lemmatizer tool .
"""
    Lemmatizes tokens using NLTK's lemmatizer tool.
    """
tokens