Commit 407f22c3 authored by Radoslav Sabol's avatar Radoslav Sabol
Browse files

Added ensemble description

parent cadf26b7
Loading
Loading
Loading
Loading
+26 −0
Original line number Diff line number Diff line
@@ -7,3 +7,29 @@ Language Identification for internet conversations
 - fasttext (0.9.2)
 - pycountry (20.7.3)
 - unidecode (1.2.0)

## Usage

### Custom FastText wrapper

### Dictionary Identifier

### Ensemble
 - the module itself is located inside of `ensemble` directory

Example usage:

```py
from lang_ident_ensemble import LangIdentEnsemble

model = LangIdentEnsemble()

prediction, confidence = model.identify_language("hi there")
print(prediction, confidence)
```

Output:

```py
en array([1.25572915])
```