Giter VIP home page Giter VIP logo

humantranslated's Introduction

HumanTranslated

Japanese Content and Language Integrated Learning (CLIL) system.

Requirements

  • node.js
  • npm
  • bower
  • mongodb
  • mecab

Getting started

This is very basic at the moment. Currently it is a simple REST API with flimsy Oauth2 integration.

To get started follow the steps below to install the npm modules and import the dummy data. To access the data from the browser open

  1. Clone the repo:

git clone [email protected]:scmorrison/humantranslated.git
  1. Install node modules:

cd humantranslated
npm i
  1. Install MeCab

sudo apt-get install mecab

Note: On Debian you might have to create a symlink for libmecab.so:

sudo ln -s /usr/lib/libmecab.so.2 /usr/lib/libmecab.so
  1. Load dummy data (from a separate shell)

# This needs to be reworked to match new structure.
# npm run dummy

HTTP Methods

Installing Mecab on OSX

###Installing Homebrew

The first step is to make sure that you have Homebrew installed. Open the Terminal.app application and copy and paste the following:

brew -v

If you have not installed Homebrew yet, all you need to do is run the following command:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

###Installing Mecab

Next, let's install Mecab with our new package manager.

brew install mecab

We must also install another package mecab-ipadic:

brew install mecab-ipadic

##Installing Mecab-ipadic via source

If the steps above do not work, you will have to install Mecab from source. You can create a directory in your $HOME directory by using the mkdir command:

mkdir src/

Then CD into the folder and use

wget https://mecab.googlecode.com/files/mecab-ipadic-2.7.0-20070801.tar.gz

Note: If you don't have wget installed, then you will need to use the following command:

brew install wget

Use the tar command to decompress the folder:

tar xzvf  mecab-ipadic-2.7.0-20070801.tar.gz

A new folder will appear. The last step is to cd back into the Humantranslated direcory and copy the script into your $PATH.

cp scripts/mecab-config /usr/bin/local

You should now be able to use the mecab command:

mecab

TODO

  • Build out task runner scripts for npm.
  • API endpoints overhall.
  • Implement Oauth2 examples.
  • Implement Oauth2 signup / login for third-party Oauth2 providers (Facebook, Google, etc.).
  • Implement a JS coding standard (possibly npm's).

License

GPLv2

Author Information

Sam Morrison @scmorrison

Kevin O'Neil @oneilkevin

Shinsuke Miyamoto @jonasuke

Sugiyama-san @sugiyama-v

humantranslated's People

Contributors

scmorrison avatar

Stargazers

 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.