Sha256: 162368fd38720ca0f5c9fb0908b2fbdbc6a8b681b5b738c0669aa732ce30d3ae

Contents?: true

Size: 1.02 KB

Versions: 2

Compression:

Stored size: 1.02 KB

Contents

Opinion Detector Basic
======================

This module implements a opinion detector for English (also works for Dutch and
German). The language is determined by the "xml:lang" attribut in the input KAF
file. Depending on the value of this attribute, the corresponding lexicon will
be loaded. This module detects three elements of the opinions:

* Expression: the actual opinion expression
* Target: about what is the previous expression
* Holder: who is stating that expression

Requirements
-----------
* VUKafParserPy: parser in python for KAF files
* lxml: library for processing xml in python

Usage
----

The input KAF file has to be annotated with at least the term layer, with
polarity information.  Correct input files for this module are the output KAF
files from the polarity tagger module

To tag an input KAF file example.kaf with opinions you can run:

    $ cat example.with.polaritieskaf | core/opinion_detector_basic_multi.py > output.with.opinions.kaf

The output will the input KAF file extended with the opinion layer.

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
opener-opinion-detector-basic-1.0.1 README.md
opener-opinion-detector-basic-1.0.0 README.md