Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/afjoseph/RAKE.Go

A Go port of the Rapid Automatic Keyword Extraction algorithm (RAKE)
https://github.com/afjoseph/RAKE.Go

Last synced: about 2 months ago
JSON representation

A Go port of the Rapid Automatic Keyword Extraction algorithm (RAKE)

Lists

README

        

A Go implementation of the Rapid Automatic Keyword Extraction (RAKE) algorithm as described in: Rose, S., Engel, D., Cramer, N., & Cowley, W. (2010). Automatic Keyword Extraction from Individual Documents. In M. W. Berry & J. Kogan (Eds.), Text Mining: Theory and Applications: John Wiley & Sons.

Original Python implementation available at: https://github.com/aneesha/RAKE

The source code is released under the MIT License.

## Docs and Report Card
- godoc.org: https://godoc.org/github.com/afjoseph/RAKE.Go
- goreportcard.com: https://goreportcard.com/report/github.com/afjoseph/RAKE.Go

## Example Usage

```go
package main

import (
"github.com/afjoseph/goRAKE"
"fmt"
)

func main() {
text := `The growing doubt of human autonomy and reason has created a state of moral confusion where man is left without the guidance of either revelation or reason. The result is the acceptance of a relativistic position which proposes that value judgements and ethical norms are exclusively matters of arbitrary preference and that no objectively valid statement can be made in this realm... But since man cannot live without values and norms, this relativism makes him an easy prey for irrational value systems.`

candidates := rake.RunRake(text)

for _, candidate := range candidates {
fmt.Printf("%s --> %f\n", candidate.Key, candidate.Value)
}

fmt.Printf("\nsize: %d\n", len(candidates))
}

9.000000-->
4.000000-->
4.000000-->
4.000000-->
4.000000-->
4.000000-->
4.000000-->
4.000000-->
4.000000-->
3.500000-->
1.500000-->
1.000000-->
1.000000-->
1.000000-->
1.000000-->
1.000000-->
1.000000-->
1.000000-->
1.000000-->
1.000000-->
1.000000-->
1.000000-->
1.000000-->
1.000000-->
1.000000-->
1.000000-->
1.000000-->
1.000000-->

```