Coder Social home page Coder Social logo

brandon-dev-aleriola / scholarphi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from allenai/scholarphi

0.0 0.0 0.0 82.78 MB

An interactive PDF reader.

License: Apache License 2.0

Shell 0.25% JavaScript 0.48% Python 53.28% Perl 0.13% TypeScript 35.72% CSS 4.06% TeX 0.88% HTML 1.79% Dockerfile 0.31% Less 2.44% Jsonnet 0.68%

scholarphi's Introduction

Scholar Reader

The user interface, API, and data processing scripts for an augmented PDF reader application.

This repository hosts code for three subprojects: the user interface, API, and data processing scripts. To learn about each of these projects and how to run the code for each of them, see the README.md file in the relevant directory.

Key directories include:

  • api/: the web API that provides data about entities in papers and bounding boxes for those entities.
  • data-processing/: a set of data processing scripts that extract entities and their bounding boxes from papers.
  • ui/: the user interface for the augmented PDF reader.

Quick Start

In order to run the reader app locally (pointing to the production api) you only need to do

cd ui
npm install 
npm start

See ui/README.md for more details on how to use the reader.

However, if you want to run the api locally as well you'll have to:

  • Follow the instructions in api/README.md to run the api locally
  • In another terminal, run the reader app in the /ui directory via npm run dev

Style guidelines

The code in this directory roughly follows the following style guidelines:

  • Python: mypy for typing, black for formatting, pylint for linting, and pytest for testing.
    Configurations for each can be found in the VSCode .vscode/settings.json file for Python subprojects.

  • Node: Typescript, with Jest for tests, and Prettier for formatting. For linting Typescript, see the tslint.json specs in the Typescript subprojects.

Styling also roughly follows the guides for React and CSS for Allen AI engineering (see the wiki), where it makes sense to use these guides.

Contributors

License

This project is licensed under the Apache License 2.0. It is aggregate software that calls GhostScript, which is distributed under the Affero GNU Public License (AGPL). The GhostScript binaries and source code are available upon request. You can learn more about the GhostScript AGPL License here.

scholarphi's People

Contributors

andrewhead avatar dykang avatar mjlangan avatar codeviking avatar zkirby avatar nuwandavek avatar rishamsidhu avatar stefanc-ai2 avatar kyleclo avatar cmwilhelm avatar rreas avatar jocelynzsun avatar buraczyn avatar rayfok avatar dependabot[bot] avatar smitar avatar mewil avatar rodneykinney avatar stupendousc avatar ckarenz avatar mkusold avatar pauls-ai2 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.