This code provides an implementation of training a contrastive model using a Language Model (LM). The main objective is to retrieve tag keywords from given texts by training the model. The user can choose the bert model that want to use.
Example : If you want to train using the bert-multilingual model with Euclidean distance, you can use the following command
python main.py --LLM_name bert-multilingual --distance euclidean_distance
Extend: You can change the model between bert-multilingual, Kobert, and KR-Finbert. Also you can change the distance between pairwise, cosine and euclidean.
Python
100.0%
This code provides an implementation of training a contrastive model using a Language Model (LM). The main objective is to retrieve tag keywords from given texts by training the model. The user can choose the bert model that want to use.
Example : If you want to train using the bert-multilingual model with Euclidean distance, you can use the following command
python main.py --LLM_name bert-multilingual --distance euclidean_distance
Extend: You can change the model between bert-multilingual, Kobert, and KR-Finbert. Also you can change the distance between pairwise, cosine and euclidean.
Python
100.0%