PUT api/Lexer/{id}
Sets an external semantic-disambiguation context for this id, usable afterwards as contextID with the morphologic analyzer, Spell corrector, etc.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
an integer number (greather or equal to 0) |
integer |
Required |
Body Parameters
LexContext| Name | Description | Type | Additional information |
|---|---|---|---|
| phrase | string |
None. |
|
| lang | string |
None. |
|
| useProb | boolean |
None. |
|
| value | decimal number |
None. |
|
| properties | Collection of string |
None. |
|
| values | Collection of decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"phrase": "sample string 1",
"lang": "sample string 2",
"useProb": true,
"value": 4.1,
"properties": [
"sample string 1",
"sample string 2"
],
"values": [
1.1,
2.1
]
}
application/xml, text/xml
Sample:
<LexContext xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LexServerWebApi.Models">
<lang>sample string 2</lang>
<phrase>sample string 1</phrase>
<properties xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</properties>
<useProb>true</useProb>
<value>4.1</value>
<values xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:float>1.1</d2p1:float>
<d2p1:float>2.1</d2p1:float>
</values>
</LexContext>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.