Giter VIP home page Giter VIP logo

sensetrans's Introduction

SenseTrans Chrome Extension for Facebook


A Chrome Extension developed for Hajin Lim's "Beyond Translation: Design and Evaluation of Emotion and Contextual Knowledge Support Interfaces for Foreign Language Social Media Posts" research project at Cornell University.

Introduction


As various Internet-based communication tools have become prevalent, it is now easy to communicate with friends who are using different languages. One of the main ways used to keep in contact with foreign friends is through posts on social media. Although popular social network sites such as Facebook now provide machine translation features to allow users to translate languages they would never understand otherwise, partial machine translation can be unclear and still leaves many people unable to make sense of foreign posts. Without truly knowing what these posts mean, English-speakers remain reluctant to interact with content they do not fully understand.

To help people to understand foreign language posts better, we designed and developed a Chrome extension that provides emotional and contextual information (such as culture and unknown entities) about the text contents of foreign language posts using natural language analysis APIs in addition to machine translation.

If you have any questions, please contact: Hajin Lim at [email protected]

Getting Started


In order to use the Context Translator, each user must first have three API keys generated from three different services (Google Translate, Textrazor, and Watson's Natural Language Understanding) which can be entered at the top of context.js. Each API has a limited free version available.

var googleKey = 'google API key';
var textRazorKey = 'textRazor API key';
var watsonUsername = 'watson Username';
var watsonPassword = 'watson Password';

Google Translate

Text Razor

Watson's Natural Language Understanding

  • First, sign up for an account at this Link:
  • https://console.bluemix.net/registration/
  • Then, click the menu icon at the top left of the page and select Services > Watson
  • Once on the Watson Services page, click the "Create Watson Service" button and select "Natural Language Understanding"
  • Click "Create"
  • Navigate to the Natural Language Understanding service page
    • Clicking "create" should automatically navigate there; if it does not, select Menu > Watson and then "Natural Language Understanding"
  • Click the menu icon on the left of the page and select "View Credentials" - your credentials should be laid out like this:
{
	"url":
"https://gateway.watsonplatform.net/natural-language-understanding/api",
	"username": "username",
	"password" : "password"
}

Installation


  1. Download the SenseTrans Translator into the directory of your choice.
  2. Open a Chrome window and click the button in the upper right hand corner to navigate to More Tools > Extensions.
  3. On the Extensions page, check the "Developer Mode" box.
  4. Click the "Load unpacked extension..." button.
  5. Select the folder containing the SenseTrans Translator Chrome Extension.
  6. Navigate to Facebook and begin using the Context Translator!

How to Use


  1. Hover over a post written in a non-English language
  2. Click the "Analyze" button that appears to begin context analysis.
    • Click the "Keyword Analysis" button to begin analyzing keywords - clicking the highlighted keyword will display more information about the selected word
    • Click the "Emotion Analysis" button to begin emotion and sentiment analysis - the sentiment of the post, as well as the emotions most likely present, will be displayed.

sensetrans's People

Contributors

hajingit avatar hajinlim avatar hanacummings avatar julianahhong avatar jwg245 avatar kms435 avatar trevoredwards avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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