Socket
Book a DemoInstallSign in
Socket

rstt

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rstt

0.9.4
bundlerRubygems
Version published
Maintainers
1
Created
Source

TreeTagger for Ruby

DESCRIPTION

The Ruby based wrapper for the TreeTagger by Helmut Schmid. Check it out if you are interested in Natural Language Processing (NLP) and Human Language Technology (HLT).

INSTALLATION + REQUIREMENTS

Before you install the treetagger-ruby package please ensure you have downloaded and installe the TreeTagger itself.
(And pls, respect his terms of license)

	gem install rstt
	rstt -c /path/to/your/TreeTagger/

USAGE

  • You have some class, where you want to use Rstt ..
    the input is given by: Rstt.set_input lang: lang, content: content with default language 'en';
    accessible languages could be found by Rstt.language_codes;
    installed languages are stored in Rstt::LANGUAGES (cause it could be different)

     class Foo
     	include Rstt
     	
     	def pos_tagging(lang,content)
     		Rstt.set_input lang: lang, content: content
     		Rstt.preprocessing
     		Rstt.tagging
     		processed_ data = Rstt.tagged
     	end
     end
    

    that's all, the processed data are accessible via Rstt.tagged,
    it is an Array, thereby each element self is an Array with following elements

    • the input word itself
    • the word class
    • the lemma of the input; depends on your input language
  • or via CLI, check usage with rstt -h

LICENSE

see License.txt

FAQs

Package last updated on 12 Aug 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.