com.kotlinnlp:utils

Utils is a Kotlin package containing utilities for the KotlinNLP library.

License

License

Categories

Categories

Kotlin Languages
GroupId

GroupId

com.kotlinnlp
ArtifactId

ArtifactId

utils
Last Version

Last Version

2.1.4
Release Date

Release Date

Type

Type

jar
Description

Description

com.kotlinnlp:utils
Utils is a Kotlin package containing utilities for the KotlinNLP library.
Project URL

Project URL

http://github.com/kotlinnlp/utils
Source Code Management

Source Code Management

http://github.com/kotlinnlp/utils/tree/master

Download utils

How to add to project

<!-- https://jarcasting.com/artifacts/com.kotlinnlp/utils/ -->
<dependency>
    <groupId>com.kotlinnlp</groupId>
    <artifactId>utils</artifactId>
    <version>2.1.4</version>
</dependency>
// https://jarcasting.com/artifacts/com.kotlinnlp/utils/
implementation 'com.kotlinnlp:utils:2.1.4'
// https://jarcasting.com/artifacts/com.kotlinnlp/utils/
implementation ("com.kotlinnlp:utils:2.1.4")
'com.kotlinnlp:utils:jar:2.1.4'
<dependency org="com.kotlinnlp" name="utils" rev="2.1.4">
  <artifact name="utils" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.kotlinnlp', module='utils', version='2.1.4')
)
libraryDependencies += "com.kotlinnlp" % "utils" % "2.1.4"
[com.kotlinnlp/utils "2.1.4"]

Dependencies

compile (10)

Group / Artifact Type Version
org.jetbrains.kotlin : kotlin-stdlib-jdk8 jar 1.3.31
org.jetbrains.kotlin : kotlin-reflect jar 1.3.31
org.jetbrains.kotlin : kotlin-test jar 1.3.31
org.spekframework.spek2 : spek-dsl-jvm pom 2.0.5
org.spekframework.spek2 : spek-runner-junit5 jar 2.0.5
com.google.guava : guava jar 24.1.1-jre
org.lmdbjava : lmdbjava jar 0.6.3
org.slf4j : slf4j-simple jar 1.7.21
com.beust : klaxon jar 5.2
com.rabbitmq : amqp-client jar 5.8.0

Project Modules

There are no modules declared in this project.

Utils Maven Central Build Status

Utils is a Kotlin package containing utilities for the KotlinNLP library.

Utils is part of KotlinNLP.

Getting Started

Import with Maven

<dependency>
    <groupId>com.kotlinnlp</groupId>
    <artifactId>utils</artifactId>
    <version>2.1.4</version>
</dependency>

ProgressIndicator

ProgressIndicator implements different indicators to track a progress:

  • Bar |███████████ | 95%
  • Icon / - \ |
  • Percentage [60%]

Example

Simply declare a ProgressIndicator passing it the total amount of steps to track and the call the tick() method to fo forward of one single step. Is it possible to pass it the amount of steps setting the amount parameter.

import com.kotlinnlp.utils.progressindicator.ProgressIndicatorBar

val progress = ProgressIndicatorBar(1000)

(0 until 1000).forEach {
  progress.tick()
  Thread.sleep(10)
}

Try some examples running the files in the examples/progressindicator folder.

License

This software is released under the terms of the Mozilla Public License, v. 2.0

Contributions

We greatly appreciate any bug reports and contributions, which can be made by filing an issue or making a pull request through the github page.

Versions

Version
2.1.4
2.1.3
2.1.2
2.1.1
2.1.0
2.0.0
1.1.0
1.0.0