Giter VIP home page Giter VIP logo

elasticsearchmrc's Introduction

Elasticsearch MRC Task

Elasticsearch 활용 한국어 위키피디아 데이터셋 MRC Task


Notice


Process

1. Environment Setup

  • elasticsearch 7.9.3 다운로드
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.9.3-linux-x86_64.tar.gz

tar -zxvf elasticsearch-7.9.3-linux-x86_64.tar.gz
  • 라이브러리 설치
pip install -r requirements.txt

2. Elasticsearch Engine 구동

./elasticsearch-7.9.3/bin/elasticsearch

3. Korpora/kowikitext 다운로드 후 인덱싱

python 1_indexing.py

4. Test Query 검색

python 2_test_query.py -query '{Input_Query}' -searchsize {Search_Result_Size}
  • 데이터 집합에 BM25 기반 검색 수행 후 결과 도출

5. MRC Task Query 검색

python 3_mrc_query.py -query '{Input_Query}' -searchsize {Search_Result_Size}
  • 데이터 집합에 BM25 기반 검색 수행 후 MRC Task 적용

6. Pseudo Relevance Feedback + MRC Task Query 검색

python 4_mrc_query_prf.py -query '{Input_Query}' -searchsize {Search_Result_Size} -expansionsize {Pseudo_Relevance_Feedback_Ratio_Size}
  • 데이터 집합에 BM25 기반 검색 수행 후 MRC Task 검색 수행

  • Pseudo Relevance Feedback 적용


Result

MRC Task Query 검색

  • Query: 2차 세계대전은 언제 종전되었는가?

fig1

  • Query: 모나리자를 그린 사람은?

fig2


Reference

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.