Update README.md
This commit is contained in:
10
README.md
10
README.md
@@ -11,13 +11,13 @@
|
|||||||
- 3: Debug
|
- 3: Debug
|
||||||
### Model and SpkModel
|
### Model and SpkModel
|
||||||
```
|
```
|
||||||
new Model(url, storepath, uid)
|
new Model(url, storepath, id)
|
||||||
new SpkModel(url, storepath, uid)
|
new SpkModel(url, storepath, id)
|
||||||
```
|
```
|
||||||
#### Functions
|
#### Functions
|
||||||
- ***constructor*** : Construct a model from an URL, storage path, and an UID.
|
- ***constructor*** : Construct a model from an URL, storage path, and an ID.
|
||||||
- If **storepath** contains valid model files and **uid** is the same, there will not be a fetch from **url**.
|
- If **storepath** contains valid model files and **id** is the same, there will not be a fetch from **url**.
|
||||||
- If **storepath** doesn't contain valid model files, or if it contains valid model files but **uid** is different, there will be a fetch from **url**, and the model is stored with **uid**.
|
- If **storepath** doesn't contain valid model files, or if it contains valid model files but **id** is different, there will be a fetch from **url**, and the model is stored with **id**.
|
||||||
- ***delete***: Delete self and free resources
|
- ***delete***: Delete self and free resources
|
||||||
#### Events
|
#### Events
|
||||||
- ***ready***: The model is ready to be put into a recognizer via the constructor, or setSpkModel() for SpkModel.
|
- ***ready***: The model is ready to be put into a recognizer via the constructor, or setSpkModel() for SpkModel.
|
||||||
|
|||||||
Reference in New Issue
Block a user