<jupyter_start><jupyter_text>Initialize the framework Mount Google Drive to load the downloaded dataset of genius lyrics<jupyter_code># Mount drive
from google.colab import drive
drive.mount('/content/drive')

#genius_path = '/content/drive/MyDrive/DM project - NLP lyrics generation/Dataset creation notebooks/genius raw/genius_lyrics_200-300.csv'
genius_path = '/content/drive/MyDrive/DM project - NLP lyrics generation/genius_lyrics.csv'<jupyter_output>Mounted at /content/drive<jupyter_text>Read the dataset Read the Genius dataset to display lyrics<jupyter_code>import pandas as pd

pd.set_option("display.max_columns", None)
pd.set_option("display.max_rows", None)
pd.set_option("display.max_colwidth", None)

# Read CSV file and get columns of interest
data = pd.read_csv(genius_path)

#print("Genius dataset:")
#print(data)

# Remove missing values
data = data.dropna()

#data['lyrics'].apply(lambda x: print("Lyrics:\n\n%s\n\n%s\n" %(x, "*"*50)))
data['lyrics'].apply(lambda x: print("Lyrics ending:\n\n%s\n\n%s\n" %(x[len(x)-50:], "*"*50)))

print("All lyrics printed. Bye!")<jupyter_output>[1;30;43mOutput streaming troncato alle ultime 5000 righe.[0m

**************************************************

Lyrics ending:

now, everything we speak is the truth
Terror Squad

**************************************************

Lyrics ending:

er's daughter anymore, mommy dear
Ooh, mommy, dear

**************************************************

Lyrics ending:

see ya
Baby, I'ma knock you down, yeah
Hmm, huh...

**************************************************

Lyrics ending:

 all mine?
Honey, I love you, you're mine all mine

**************************************************

Lyrics ending:

h
Aaaah - Take my words and find your kingdom now!

**************************************************

Lyrics ending:

t's gonna be alright
Everything's gonna be alright

**************************************************

Lyrics ending:

 me in...
Said how do I get to Heaven from here...

**************************************************

Lyrics ending:

ere I will go
Sooner or lat[...]
{'fraction_non_alphanumeric': 0.28679962013295346, 'fraction_numerical': 0.010446343779677113, 'mean_word_length': 6.191126279863481, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '325463', 'license': 'MIT', 'n_tokens_mistral': 670, 'n_tokens_neox': 626, 'n_words': 186, 'path': 'Dataset_creation/Check_genius_lyrics.ipynb', 'repo_name': 'NLP-Lyrics-Team/nlp-lyrics', 'size': '2106'}