Downloads · 30 days
6
5% of all-time downloads
rapminerz/Word2Bezbar-medium
Word2Bezbar-medium is a machine learning model from rapminerz. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for gensim.
Word2Bezbar are Word2Vec models trained on french rap lyrics sourced from Genius. Tokenization has been done using NLTK french wordtokenze function, with a prior processing to remove french oral contractions. Used dat…
Downloads · 30 days
6
5% of all-time downloads
All-time downloads
112
Public
Repo size
946 MB
Likes
0
Public
Click a slice to open those files.
.npy927 MB · 98%
From the Hugging Face model README
Word2Bezbar are Word2Vec models trained on french rap lyrics sourced from Genius. Tokenization has been done using NLTK french word_tokenze function, with a prior processing to remove french oral contractions. Used dataset size was 323MB, corresponding to 77M tokens.
The model captures the semantic relationships between words in the context of french rap, providing a useful tool for studies associated to french slang and music lyrics analysis.
Size of this model is medium
| Parameter | Value |
|---|---|
| Dimensionality | 200 |
| Window Size | 10 |
| Epochs | 20 |
| Algorithm | CBOW |
This model has been trained with the followed software versions
| Requirement | Version |
|---|---|
| Python | 3.8.5 |
| Gensim library | 4.3.2 |
| NTLK library | 3.8.1 |
Install Required Python Libraries:
pip install gensim
Clone the Repository:
git clone https://github.com/rapminerz/Word2Bezbar-medium.git
Navigate to the Model Directory:
cd Word2Bezbar-medium
To load the Word2Bezbar Word2Vec model, use the following Python code:
import gensim
# Load the Word2Vec model
model = gensim.models.Word2Vec.load("word2vec.model")
Once the model is loaded, you can use it as shown:
model.wv.most_similar("bendo")
[('binks', 0.7833775877952576),
('bando', 0.7511972188949585),
('tieks', 0.7123318910598755),
('ghetto', 0.6887569427490234),
('hall', 0.679759681224823),
('barrio', 0.6694452166557312),
('hood', 0.6490002274513245),
('block', 0.6299082040786743),
('bloc', 0.627208411693573),
('secteur', 0.6225507855415344)]
model.wv.most_similar("kichta")
[('liasse', 0.7877408266067505),
('sse-lia', 0.7605615854263306),
('kishta', 0.7043415904045105),
('kich', 0.663270890712738),
('sacoche', 0.6381840705871582),
('moula', 0.6318666338920593),
('valise', 0.5628494024276733),
('bonbonne', 0.55326247215271),
('skalape', 0.5523083806037903),
('kichtas', 0.5385912656784058)]
model.wv.doesnt_match(["racli","gow","gadji","fimbi","boug"])
'boug'
model.wv.doesnt_match(["Zidane","Mbappé","Ronaldo","Messi","Jordan"])
'Jordan'
model.wv.similarity("kichta", "moula")
0.63186663
model.wv.similarity("bonheur", "moula")
0.14551902
model.wv['ekip']
array([ 1.4757039e-01, ... 1.1260221e+00],
dtype=float32)
This model is designed for academic and research purposes only. It is not intended for commercial use. The creators of this model do not endorse or promote any specific views or opinions that may be represented in the dataset.
Please mention @RapMinerz if you use our models
For any questions or issues, please contact the repository owner, RapMinerz, at [email protected].