Methods
addPhrase(phrase)
Add an XMM phrase to the current set.
Parameters:
Name | Type | Description |
---|---|---|
phrase |
xmmPhrase | An XMM compatible phrase (ie created with the PhraseMaker class) |
- Source:
addTrainingSet(set)
Add all phrases from another training set.
Parameters:
Name | Type | Description |
---|---|---|
set |
xmmTrainingSet | An XMM compatible training set. |
- Source:
clear()
Clear the whole set.
- Source:
getPhrase(index) → {xmmPhrase}
Get phrase at a particular index.
Parameters:
Name | Type | Description |
---|---|---|
index |
Number | The index of the phrase to retrieve. |
- Source:
Returns:
- Type
- xmmPhrase
getPhrasesOfLabel(label) → {xmmTrainingSet}
Return the subset of phrases of a particular label.
Parameters:
Name | Type | Description |
---|---|---|
label |
String | The label of the phrases from which to generate the sub-training set. |
- Source:
Returns:
- Type
- xmmTrainingSet
getSize() → {Number}
Get the total number of phrases actually in the set.
- Source:
Returns:
- Type
- Number
getTrainingSet() → {xmmTrainingSet}
Return the current training set.
- Source:
Returns:
- Type
- xmmTrainingSet
removePhrase(index)
Remove phrase at a particular index.
Parameters:
Name | Type | Description |
---|---|---|
index |
Number | The index of the phrase to remove. |
- Source:
removePhrasesOfLabel(label)
Remove all phrases of a particular label.
Parameters:
Name | Type | Description |
---|---|---|
label |
String | The label of the phrases to remove. |
- Source: