https://github.com/bvolpato/dense4j
Keyword Density API for Java
https://github.com/bvolpato/dense4j
density distribution java keyword
Last synced: about 1 year ago
JSON representation
Keyword Density API for Java
- Host: GitHub
- URL: https://github.com/bvolpato/dense4j
- Owner: bvolpato
- License: apache-2.0
- Created: 2015-12-10T06:52:28.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2025-03-04T17:16:30.000Z (over 1 year ago)
- Last Synced: 2025-03-25T14:51:17.002Z (about 1 year ago)
- Topics: density, distribution, java, keyword
- Language: Java
- Size: 83 KB
- Stars: 6
- Watchers: 3
- Forks: 4
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
dense4j
========
[](https://github.com/brunocvcunha/dense4j/blob/master/LICENSE)
[](https://travis-ci.org/brunocvcunha/dense4j)
[](https://maven-badges.herokuapp.com/maven-central/org.brunocvcunha.dense4j/dense4j)
[](https://coveralls.io/github/brunocvcunha/dense4j?branch=master)
Keyword Density API for Java
Download
--------
Download [the latest JAR][1] or grab via Maven:
```xml
org.brunocvcunha.dense4j
dense4j
0.2
```
or Gradle:
```groovy
compile 'org.brunocvcunha.dense4j:dense4j:0.2'
```
Snapshots of the development version are available in [Sonatype's `snapshots` repository][snap].
Dense4j requires at minimum Java 6.
Usage Example
--------
Java App:
```java
import org.brunocvcunha.dense4j.DenseCalculator;
public class Dense4jMain {
public static void main(String[] args) throws IOException {
String text = "Dense4j is an API developed by Bruno Candido Volpato da Cunha. " +
"Bruno decided to start Dense4j in 2015.";
Map density = DenseCalculator.getKeywordsMap(text);
System.out.println("Density Map: " + density.toString());
System.out.println("Density for Bruno is: " + density.get("bruno"));
}
}
```
[1]: https://search.maven.org/remote_content?g=org.brunocvcunha.dense4j&a=dense4j&v=LATEST
[snap]: https://oss.sonatype.org/content/repositories/snapshots/