GithubHelp home page GithubHelp logo

double-propagation-target-generation's Introduction

##Reference

This module is a side work to propose an additional approach to generate domain dependent potential opinion-targets unsupervisedly. The approach only requires a bunch of texts of the target domain. The result is a ranked list of opinion-targets (words that are likely to be target of opinions).

The technique is based on the double-propagation technique (Qiu et al. 2009) (Qiu et al. 2011) with some modifications. More details can be found in the OpeNER deliverable D5.51.

This approach requires a syntactic dependency analysis of the sentences, which is a requirement difficult to fulfill for some languages. The current implementation uses the Stanford NLP tools (http://nlp.stanford.edu/software/) and thus it works only for English. It should be possible to provide an alternative implementation of the class that performs the analysis of the texts (which is isolated behind an interface) to allow working with other languages. Even better would be to modify the codebase to admit KAF documents as input (with a dependency layer on it). KAF has a dependency layer capable of holding the depedency information, but in OpeNER no official dependency parsers have been developed for all the languages.

###Command Line Interface

First you need to have Apache Maven in your computer, so you can package the source code.

Then you can go to the folder containing the source code and the pom.xml and issue the following command:

mvn clean package

This will package the code and generate a runnable jar file.

Then you can run the process with:

java -jar NAME_OF_THE_JAR -i PATH_TO_INPUT_DIR -o PATH_TO_OUTPUT_DIR [-m PATH_TO_MULTIWORD_FILE]
  • The -i parameter specifies the directory that contains the raw texts to be processed
  • The -o parameter specifies the directory in which the file with the resulting opinion-targets will be generated.
  • The -m parameter is optional and specifies the path to a file containing multiword terms that will be taken into account when executing the process.

double-propagation-target-generation's People

Contributors

aitor-garcia-p 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.