Utils
![Build Status](https://camo.githubusercontent.com/f286cc4b49dd55e365aa35a06c9e328ee99621da95d3c558d7d83c05e5126008/68747470733a2f2f7472617669732d63692e6f72672f4b6f746c696e4e4c502f5574696c732e7376673f6272616e63683d6d6173746572)
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.