Skip to content

anhquan075/CS336-legal-text-retrieval

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vietnamese Legal Text Retrieval

Our repository is based on this approach. In this work, we focus on building a website to interact with the retrieval system easily. All information about training and evaluation, you can find in this repository we mentioned above.

Overview

This system contains 2 steps:

  • generate training data containing negative sample found by mixture score of cosine(tfidf) + bm25 (using top 150 law articles most similarity)
  • fine-tune PhoBERT model (+NlpHUST model - optional) on generated data

thissys

Environments

git clone https://github.com/vncorenlp/VnCoreNLP.git vncorenlp_data 
# for vncorebnlp tokenize lib

Run

  1. Config your mongo database in web/config/db.env.copy by cp web/config/db.env.copy web/config/db.env then fill the file with the information as you want to.

  2. Run the service using docker-compose:

  docker-compose --env-file=web/config/db.env up --build

Note:

  • The backend service use port 5002, and the frontend service use port 5000. You can change the port by passing in docker-compose.yml.
  • If you face with any errors, don't hesitate to create a new issue.

About

CS336 Final Project - Vietnamese Legal Text Retrieval

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages