Skip to content

Commit

Permalink
Update README.MD
Browse files Browse the repository at this point in the history
  • Loading branch information
ntedgi authored Jun 6, 2019
1 parent 243b20b commit cb8a584
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion README.MD
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[![Build Status](https://travis-ci.com/ntedgi/cld3-kotlin.svg?branch=master)](https://travis-ci.com/ntedgi/cld3-kotlin) [![codecov](https://codecov.io/gh/ntedgi/cld3-kotlin/branch/master/graph/badge.svg)](https://codecov.io/gh/ntedgi/cld3-kotlin)
[![codebeat badge](https://codebeat.co/badges/a92dd040-a71c-4644-96a9-daad0aeb9ac4)](https://codebeat.co/projects/github-com-ntedgi-cld3-kotlin-master)
[![codebeat badge](https://codebeat.co/badges/a92dd040-a71c-4644-96a9-daad0aeb9ac4)](https://codebeat.co/projects/github-com-ntedgi-cld3-kotlin-master) [![](https://jitpack.io/v/ntedgi/cld3-kotlin.svg)](https://jitpack.io/#ntedgi/cld3-kotlin)

# cld3-kotlin
Kotlin Wrapper for [CLD3](https://github.com/google/cld3) - Google's Compact Language Detector 3

Expand All @@ -8,6 +9,27 @@ Bridge from c++ to Kotlin using [Java Abstracted Foreign Function Layer](https:/

## Usage Examples:


### add maven dependencies

```maven
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
...
<dependency>
<groupId>com.github.ntedgi</groupId>
<artifactId>cld3-kotlin</artifactId>
<version>master-243b20b6d7-1</version>
</dependency>
```

### download [os shred objects](https://github.com/ntedgi/cld3-kotlin/tree/master/src/main/lib) add under src/lib/(os-name)


```kotlin
val ld = LangDetect()
val englishText = "This piece of text is in English";
Expand Down

0 comments on commit cb8a584

Please sign in to comment.