rake 1.0.1

  • Readme
  • Changelog
  • Example
  • Installing
  • 62

Build Status

RAKE #

Implementation of the Rapid Automatic Keyword Extraction algorithm (RAKE)

Broadly based on the python implementation at github.com/fabianvf/python-rake

Based on Rose, S. , Engel, D. , Cramer, N. and Cowley, W. (2010). Automatic Keyword Extraction from Individual Documents. In Text Mining (eds M. W. Berry and J. Kogan). doi:10.1002/9780470689646.ch1

Usage #

A simple usage example:

import 'package:rake/rake.dart';

main() {
  final rake = Rake();
  // only keywords with length >= 5
  // and at least two occurrences
  print(rake.rank('this large world', minChars: 5, minFrequency: 2));
}

1.0.0 #

  • Initial version

example/rake_example.dart

import 'package:rake/rake.dart';

final exampleText =
    """Compatibility of systems of linear constraints over the set of 
natural numbers. Criteria of compatibility of a system of linear 
Diophantine equations, strict inequations, and nonstrict inequations 
are considered. Upper bounds for components of a minimal set of solutions 
and algorithms of construction of minimal generating sets of solutions for 
all types of systems are given. These criteria and the corresponding 
algorithms for constructing a minimal supporting set of solutions can be 
used in solving all the considered types of systems and systems 
of mixed types.""";

main() {
  final rake = Rake();
  // only keywords with length >= 5
  // and at least two occurrences
  print(rake.rank(exampleText, minChars: 5, minFrequency: 2));
}

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  rake: ^1.0.1

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:rake/rake.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
25
Health:
Code health derived from static analysis. [more]
98
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
62
Learn more about scoring.

We analyzed this package on Oct 23, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.5.1
  • pana: 0.12.21

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in primary library package:rake/rake.dart.

Health suggestions

Fix lib/src/parse_num.dart. (-1 points)

Analysis of lib/src/parse_num.dart reported 2 hints:

line 13 col 7: DO use curly braces for all flow control structures.

line 15 col 7: DO use curly braces for all flow control structures.

Fix lib/src/rake_base.dart. (-1 points)

Analysis of lib/src/rake_base.dart reported 2 hints:

line 57 col 5: DO use curly braces for all flow control structures.

line 82 col 31: DO use curly braces for all flow control structures.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
Dev dependencies
pedantic ^1.0.0
test ^1.0.0