https://developer.surveymonkey.com/mashery/get_survey_details
says (for example)
data.pages[].questions[].answers[_].is_answer
(Required)
What does (Required) mean there? Not all responses contain all (Required) fields so it does not mean that a field thus marked is always returned.
Just wondering,
Patrick
Edit 25-July: I am asking this in the context of an "Other (please specify)" option.
Here is an example
{"text": "Annet (vennligst spesifiser)", "visible": true, "is_answer": true, "apply_all_rows": false, "type": "other", "answer_id": "6886575992"}]
Can I be sure that the presence of an "is_answer" field means that this is a free text input to a multiple-choice single-response question? Optiontype 10 in the old RDD format. I think optiontype 10 was not counted as a response in Responses.xls while optiontype 11 was in both Responses.xls and ResponsesText.xls but my memory of that is fading. Anyway, that is past now so I just want to be sure I correctly identify this response type.
"required" means that a value will always be returned by the API. Other attributes marked as "optional" will only be returned for certain kinds of data. For example "data.pages[].questions[].answers[].items[].type" which is marked "optional" will only be returned for matrix question types as described in the description for that attribute to the right.
Related
Hello StackOverflow Friends:
Slots 1-5 below work great.
The problem is now I have to ask the user (after slot 5) "Describe the bug you encountered".
I suspect it is to broad / vague to put into a slot. I.e. if they say "the video crashed" and not "the player stopped" it keeps asking them to, "Describe the bug you encountered".
How do I respond with a "thank you" after the user types in, in their own words, the bug they encountered?
As per this documentation: https://docs.aws.amazon.com/lex/latest/dg/howitworks-builtins-slots.html, there are no built-in slot types that can support free-form text/speech
As a workaround, you could create a slot of any type (e.g. AMAZON.NUMBER or AMAZON.Alphanumeric) so that you can use it to ask the 6th question for bug description. In addition, implement a code-hook lambda function for your intent.
At the end after 1-5 slots are filled, when this dummy slot is elicited with the required question, it will always turn up empty, however in the input event received by the code-hook lambda function- you can find the inputTranscript- this will capture what the caller has provided as input, even if the dummy slot value comes up as empty.
In your lambda function, you may ignore empty value of slot and go ahead with closing the Bot, by sending response as 'Fulfilled' after 1-5 are filled and you are received a non-empty value of inputTranscript for the 6th question.
Alternatively, you may return ElicitIntent (rather than ElicitSlot) from the code-hook lambda after slots 1-5 are filled. In this case you will not need to create a dummy slot as we are not using ElicitSlot. You will need to create a Fallback Intent and associate it with the lambda code-hook so that input transcript can be captured and saved as what the caller says may not match with utterances required for your original intent.
For more details on lambda code-hook for lex-intents, refer:
https://docs.aws.amazon.com/lex/latest/dg/programming-model.html#prog-model-lambda
https://docs.aws.amazon.com/lex/latest/dg/lambda-input-response-format.html
What is MS Graph "subscription id" property max length?
In examples length of id is 36 characters (e.g. "7f105c7d-2dc5-4530-97cd-4e7ae6534c07").
It will be always like this? I can't find info in documentation.
The documentation doesn't explicitly states it is an UUID... though it certainly looks line one, probably will be one, and will most likely always be one. However, imho, unless you really have problems in terms of storage, it is best to reserve a reasonable size and assume this ID is a "opaque string" that you just store, and assume is unique (so you can make some key of it, or build an index on it, if you would be referring to a database as the storage). If there are other reasons why you need to know the side, please clarify...
Hi I am currently trying to utilize Watson's Visual Reco Service and I am getting a really weird response. After reading the documentaion I am guessing this photo doesn't meet the threshold value but I am not actually sure. Here's the a snippet of one of my response:
{ "classifiers": [{
"classes": [ { "class": "classname", "score": 0.522029 } ],
"classifier_id": "normalLeft_329785087", "name": "normalLeft" } ],
"image": "Testing_Left.zip/80589N.jpg"
},
{
"classifiers": [],
"image": "Testing_Left.zip/81860Y.jpg"
},
Another issue related to this is that sometimes my zip files aren't recognized by watson. Is there any particular reason why watson would have difficulties with zip files?
Thanks for the help in advance.
After reading the documentaion I am guessing this photo doesn't meet the threshold value but I am not actually sure.
That's exactly it. It means none of the classes in the classifiers applied to the image Testing_Left.zip/81860Y.jpg returned a score above the threshold. By default for custom classifiers, the threshold is 0.5 You can set the threshold parameter to 0 if you would like to see all each score per class per image.
Is there any particular reason why watson would have difficulties with zip files?
We have observed problems with some zip files with files or directories inside which have extended character sets, such as accented letters. Could that be the case for you?
I'm using cadvisor's API to extract data from a docker machine for monitoring purposes. I've noticed that for all containers that I've created there's an aliases array in the data which contains a hash and the short name in a specific order (0 seems to always be the short name and 1 seems to always be the unique hash).
{
name: "/docker/4b29315fca60ce0e8e91889f9c8a4f35b6374fbbfcf6a92a108015106dd4ab77",
aliases: [
"stupefied_albattani",
"4b29315fca60ce0e8e91889f9c8a4f35b6374fbbfcf6a92a108015106dd4ab77"
]
}
Seems is the key word here. Unfortunately the documentation on cAdvisor's API is almost non-existent so I can't look there for a definitive answer. The fact that the data is an array named "aliases" seems to imply that it is possible for there to be aliases other than the hash and the short name created for a container. I also can't be certain that the order will always be 0 = short name, 1 = hash.
Is it safe to assume that aliases[0] is going to always be the short name (provided that aliases array exists), and if not then how can I extract the short name from the data with 100% confidence that I'm getting the correct field?
It is safe, unique hash value always comes at aliases[1] but it does not imply that aliases[0] is always short. As you can see in the following image.
My question is exactly the same as the OP in this question:
Set Additional Data to highcharts series
But the accepted answer explains how to add additional data to the point, not the series, without saying if it's possible to do with the series or not.
I would like to be able to define a series like:
series: [
{"hasCustomFlag": true, "name": "s1", "data": [...]},
{"hasCustomFlag": false, "name": "s2", "data": [...]},
]
and be able to use point.series.hasCustomFlag inside of a formatting function. Is this possible?
I don't want to put the data on the point level, because that means I'd have to duplicate the data far too many times.
Yes this is possible, the extra configuration properties is located under the options property (this.series refers to the series instance, not the configuration objects). See the reference here and scroll down to properties section.
So instead use this line in the formatter:
if (this.series.options.hasCustomFlag) { ... }
Full example on jsfiddle
This appears to have been revised with later iterations of HighCharts/HighStocks. The jsfiddle example no longer works. Using the "this.series.options.hasCustomFlag" syntax results in "undefined". The debugger shows the data I'm looking for is in "this.series.userOptions.data" - an unsorted very large array, but the entire series is there - not the specific record data you normally get with this.x or this.y.