Giter Club home page Giter Club logo

paper-recommender's Introduction

Paper Recommender

Lucas laughlin

Demo Site: http://paper-recommender-frontend.s3-website-us-west-2.amazonaws.com/

Table of Contents:

  • Academic Paper Recommender

    • Related write up of project
  • Clustering.ipynb

    • Tokenize (documents_with_tokens.pickle)
      Use spacy tokenizer to tokenize abstracts for TF-IDF. Note: RoBERTa and GPT-2 have their own tokenizers
    • Kmeans Clustering
      Define Functiosn for performing K-means clustering
    • Dimension Reduction
      Functions to perform dimension reduction on embddings with PCA, Umap, and TSNE
    • Plotting Functions
      Functions to plot 2d embeddings once dimension reduction has been performed
    • Nearest Neighbor Function
      Functions to extract l nearest neighbors given a target embedding and a list of embeddings
    • Co-citation Functions
      Functions for calculating Co-citation, reference and citation scores given a target embeddings and a list of nearest neighbor embeddings
    • TFIDF
      Perform a full run of getting TFIDF embeddings from abstracts. Clusters, plots, and calculates the co-citation scores
    • Doc2Vec
      Perform a full run of getting Doc2Vec embeddings from abstracts. Clusters, plots, and calculates the co-citation scores
    • RoBERTa
      Fine tune RoBERTa on the abstract data and extract document embeddings. Then calculate co-citation scores.
  • DataExploration.ipynb:

    • Load Initial Data and Trim (trimmed_arxiv_docs.pickle)

      Take raw json data and sample by year/oi then szve into a df

    • Data Cleaning (trimmed_cleaned_arxiv_docs.pickle)

      Summarize df and remove duplicates

    • Sparse Matrix (sparse_matrix.pickle, idx2auth.pickle, idx2doc.pickle)

      Create an interaction df, sparse interaction matrix and idx2auth/idx2doc mappings

    • Convert interaction to matrix authors and documents to ids

      Convert interaction df of authors and paper names to contain only ids (ids = index in unique authors/papers list)

    • Author Frequency Analysis

      Create new datasets by setting minimum author frequency. This was an attempt to create better results by reducing the sparsity of the interaction matrix

    • Cocitaion Study

      Creating and testing functions to measure cocitations using Open Citations API

  • Fine Tune GPT-2 (hep-th).ipynb

    • Load Data and Create Dataset
      Download tokenizer, tokenize absrtactsa and create DataLoader objects for finetuning and validation
    • Fine Tuning
      Download GPT-2 and fine tune it
    • Extract Embeddings
      Using the fine tuned GPT-2 hidden layer outputs to create document embeddings
  • Interact With MongoDB.ipynb

    • Uploading to Mongo
      Uploading document df to mongoDB database
    • Deleting Documents
      Remove all documents from mongoDB
    • Querying Mongo
      Protoype for querying mongoDB using pymongo
  • flask-server

    • Contains a flask server with trained embeddings and a k nearest neighbor model. It has been deployed to an AWS EC2 instance
  • react-frontend

    • Contains a react based front end application. It allows you to search through all arXiv high energy physics papers. Once you bhave selected a paper it provides you with the 10 most similar papers.

paper-recommender's People

Contributors

lucaslaughlin 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.