Opinion Detector ---------------- Component that wraps a machine learned Opinion Detector in Python. ### Confused by some terminology? This software is part of a larger collection of natural language processing tools known as "the OpeNER project". You can find more information about the project at [the OpeNER portal](http://opener-project.github.io). There you can also find references to terms like KAF (an XML standard to represent linguistic annotations in texts), component, cores, scenario's and pipelines. Quick Use Example ----------------- Installing the opinion-detector can be done by executing: gem install opener-opinion-detector Please bare in mind that all components in OpeNER take KAF as an input and output KAF by default. ### Command line interface You should now be able to call the opinion detector as a regular shell command: by its name. Once installed the gem normally sits in your path so you can call it directly from anywhere. This application reads a text from standard input in order process it. It needs models to work. There is a free set of models available trained on a news corpus. cat englist.kaf | opinion-detector \ --resource-path /path/to/models \ --resource-url http://opener.s3.amazonaws.com/Models/final_models_news_20140522.zip You have to download the models separately. You can download them here: This will output: ``` ``` ### Webservices You can launch a webservice by executing: opinion-detector-server This will launch a mini webserver with the webservice. It defaults to port 9292, so you can access it at . To launch it on a different port provide the `-p [port-number]` option like this: opinion-detector-server -p 1234 It then launches at Documentation on the Webservice is provided by surfing to the urls provided above. For more information on how to launch a webservice run the command with the ```-h``` option. ### Daemon Last but not least the opinion detector comes shipped with a daemon that can read jobs (and write) jobs to and from Amazon SQS queues. For more information type: opinion-detector-daemon -h Description of dependencies --------------------------- This component runs best if you run it in an environment suited for OpeNER components. You can find an installation guide and helper tools in the [OpeNER installer](https://github.com/opener-project/opener-installer) and an [installation guide on the Opener Website](http://opener-project.github.io/getting-started/how-to/local-installation.html) At least you need the following system setup: ### Dependencies for normal use: * Ruby 1.9.3 or newer * Python 2.6 or newer * lxml Domain Adaption --------------- TODO Language Extension ------------------ TODO The Core -------- The component is a fat wrapper around the actual language technology core. You can find the core technolies in the following repository * [opinion-detector-base](https://github.com/opener-project/opinion-detector-base) Where to go from here --------------------- * [Check the project websitere](http://opener-project.github.io) * [Checkout the webservice](http://opener.olery.com/opinion-detector) Report problem/Get help ----------------------- If you encounter problems, please email or leave an issue in the [issue tracker](https://github.com/opener-project/opinion-detector/issues). Contributing ------------ 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request