Coder Social home page Coder Social logo

vinf's Introduction

Searching in scientific papers

Patrik Kovács

Subject: Information retrieval

How to run

install dependencies - pip install -r requirements.txt
run elasticsearch docker image - docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.9.2
in order to preprocess dataset run command python preprocess.py -i inputFileToPreprocess -o preprocessedOutputFile
in order to import preprocessed data to elasticsearch run command python import_to_elastic.py -f fileToImport
in order to evaluate software run command python evaluate.py -i inputFileForEvaluation -o evaluationResultFile
in order to run REST service run command flask run

Usage of REST service

Input

{
"title":"Plasmon Amplification through Stimulated Emission at Terahertz Frequencies in Graphene",
"use_universal_sentence_encoder":1,
"number_of_similar_documents":1
}

Output

  • returns json body:
{
    "searched_document": {
        "abstract": "  We show that ...",
        "categories": [
            "cond-mat.mes-hall",
            "cond-mat.mtrl-sci"
        ],
        "title": "Plasmon Amplification through Stimulated Emission at Terahertz\n  Frequencies in Graphene"
    },
    "similar_documents": [
        {
            "_id": "4_jiN3YBzHz78cgcANnO",
            "_index": "papers",
            "_score": 1.6729777,
            "_source": {
                "abstract": " We report studies of...",
                "categories": [
                    "cond-mat.mes-hall"
                ],
                "title": "Cyclotron Resonance study of the electron and hole velocity in graphene\n  monolayers"
            },
            "_type": "_doc"
        }
    ]
}

vinf's People

Contributors

xkovacsp1 avatar

Watchers

 avatar

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.