You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
package main
import (
"github.com/afjoseph/RAKE.go""fmt"
)
funcmain() {
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:=rangecandidates {
fmt.Printf("%s --> %f\n", candidate.Key, candidate.Value)
}
fmt.Printf("\nsize: %d\n", len(candidates))
}
<!----------------------------------------------------------><!--output--><!----------------------------------------------------------><!--objectivelyvalidstatement-->9.000000--><!--exclusivelymatters-->4.000000--><!--arbitrarypreference-->4.000000--><!--easyprey-->4.000000--><!--relativisticposition-->4.000000--><!--humanautonomy-->4.000000--><!--relativismmakes-->4.000000--><!--growingdoubt-->4.000000--><!--moralconfusion-->4.000000--><!--ethicalnorms-->3.500000--><!--norms-->1.500000--><!--made-->1.000000--><!--guidance-->1.000000--><!--man-->1.000000--><!--result-->1.000000--><!--systems-->1.000000--><!--values-->1.000000--><!--realm-->1.000000--><!--live-->1.000000--><!--judgements-->1.000000--><!--reason-->1.000000--><!--left-->1.000000--><!--proposes-->1.000000--><!--irrational-->1.000000--><!--created-->1.000000--><!--acceptance-->1.000000--><!--revelation-->1.000000--><!--state-->1.000000--><!--size: 28-->
About
A Go port of the Rapid Automatic Keyword Extraction algorithm (RAKE)