Do keywords affect Bluemix Watson speech recognition? - ibm-cloud

Watson's speech recognizer supports a list of keywords as a parameter, but I'm trying to figure out whether these keywords actually affect recognition. For example, if you were handing Watson an audio clip you knew to contain proper names that might not be properly recognized, would submitting these names as keywords increase the likelihood that Watson would properly recognize them? Do the keywords interact with the recognition itself?

unfortunately the answer is no, the words wont get added to the vocabulary just because you added them as keywords, so they wont be found.
Dani

Looks like the answer to this is no (though I'd love to be proven wrong here): I ran a test clip that contained proper names that Watson mis-recognized, then submitted the same clip with those names as keywords, and it didn't change the transcript at all.
Not entirely conclusive, but it seems like the answer is no.

Related

How can I help the Google Assistant recognise my action's name?

I have created an action called Sequematic. The name is a combination of the words sequence and automatic.
Unfortunately when asking Google to 'talk to Sequematic' it has a hard time recognising the name.
Is there anything I can do to help with recognition of the name?
At this moment there is very little that you can do to help Google Assistant with action recognition. The recognition is done by the voice recognition within the Google Assistant device itself and this is managed and trained by Google.
The only trick that I know is by playing around with the name pronunciation in you actions on google settings. This only works if the recognition is changing the name to a close match, something like "Sekuematik" because the recognition does not know how to handle the word. You could pick "Sekuamatik" as your action name and change the pronunciation to "Sequamatic".
While this works, it still changes your actions name, so your action name will be displayed as "Sekuematik" on any visual element in Google Assistant. So this trick might work for some people, but it is far from ideal.
The only other options you would have is wait for Google to update their voice recognition or maybe contact Google Assistant support and request their help to see if they can do something for your action name.

How to detect if user input have one word only in Watson Assistant?

I am using the IBM Watson Conversation Assistant Chatbot.
I am having troubles finding in the documentation how to detect if the user input consists of a single word. It's fine for simplicity and for my goal to use the presence of spaces as surrogate (no spaces means only word).
I tried using SpEL.
I tried also to intercept the following as Node entry:
request.input.text:" "
with scarce results.
What should I write into the "If assistant recognizes:" field?
Here how I solved, hopefully will save a lot of time to someone else.
Inside the node, under "If assistant recognizes:"
!input.text.contains(' ')
Then respond with:
You wrote "<? input.text ?>". Please write full sentences.
You can use the JavaScript DOM element to read the inner text and manipulate it.

How to give special characters in Trivia Game, Multiple Choice?

I am using the Actions on Google Trivia Game template.
Special characters () are not displaying in the chat window.
In google sheets, I have given in the following format.
Question: How to Add an item to the end of the list
Answer1: append()
Answer2: extend()
In google assistant, it was displaying without parenthesis. How to give questions and answers with parenthesis and other special characters?
This is a good one - it looks like the processor that uses what you entered removes special characters. This does seem odd when you look at the question and the suggestion chips.
However... it makes sense if you think about how people are expected to answer the question. If you run it in "speaker" mode, it won't display the suggestion chips, but users will be expected to verbally give an answer. It is pretty difficult to give an answer with parentheses - so the system automatically removes those from what is expected.

Search a string/text from a PDF file and list all the matched string in iPhone/iPad application

I have implemented an iPad application which is actually read the PDF file(using quartz). Now I want to implement the Search Feature and for this I have checked some tutorial some where mentioned using quartz and some where mentioned FastPdfKit. But I don't know which one will be better. I have seen the quartz ( https://developer.apple.com/library/mac/#documentation/GraphicsImaging/Conceptual/drawingwithquartz2d/dq_pdf_scan/dq_pdf_scan.html ).
I have some doubt in this.
the "Callbacks for Operators" what and why we use this?
"Operators Table" what is the purpose of this? and
Where we will put the search text.
Please suggest me in this regards or provide any other open source which I can use.
Thanks in advance.
CGPDFScanner is a fairly low-level API which allows you to selectively scan for various PDF operators and invoke callbacks on each operator. It does require you to have some knowledge of PDF structure, but it will do the job. A PDF operator is a command in a PDF file which does some operation (usually manipulating the drawing state, e.g. writing text, drawing lines, changing graphics state, etc.).
Essentially, you tell the scanner what PDF operators you are interested in, and tell it what callback you want to invoke. In your case, you are interested in the text operators TJ, Tj; see this page for a working text search example using this API, and this question for some other answers on text search.
You may get your answer at FastPdfKit. Please let me know if you still more information. I think this will solve your purpose.
#Subodh S: At the momment, PDFKitten does not support multi-words query. Therefore, your keyword is not searched and highlighted. You must handle yourself in source code and even change some points in PDFKitten.

Google Rich Snippets warnings for hCard

I get the following errors from the Google Rich Snippet Tool for my website http://iancrowther.co.uk/
hcard
Warning: This information will not appear as a rich snippet in search results results, because it seems to describe an organization. Google does not currently display organization information in rich snippets
Warning: At least one field must be set for Hcard.
Warning: Missing required field "name (fn)".
Im experimenting with vcard and Schema.org and am wondering if I'm missing something or the validator is playing up. I have added vcard and Schema.org markup to the body which may be causing confusion. Also, I am making the assumption I can use both methods to markup my code.
Update:
I guess with the body tag, I'm just trying to let Google discover the elements which make up the schema object within the page. I'm not sure if this is a good / bad way to approach things? However it lets my markup be free of specific blocks of markup. I guess this is open to discussion but I like the idea of having a natural flow to the content that's decorated in the background. Do you think there is any negative impact? I'm undecided.
I am in favour of the Person structure, this was a good call as this is more representative of the current site content. I am a freelance developer and as such use this page as my Organisation landing page, so I guess I have to make a stronger decision of the sites goals and tailor the content accordingly, ie Organisation or Person.
I understand that there is no immediate rich snippet gains, but im a web guy so have a keen interest in these kind of things.
With schema testing, I find it easiest to start from the most obvious problem, and try to work our way deeper from there. Note, I have zero experience with hcard, but I don't believe the error you mentioned actually has anything to do with your hcard properties.
The most obvious problem I see, is that your body tag has an itemtype of schema.org\Organization. When you set an itemtype on a dom element, you are saying that everything inside of that element is going to help describe that itemtype. Since you've placed this on your body element, you are quite literally telling Google that your entire page is about an organization.
From the content of your page, I would recommend changing that itemtype to schema.org\Person. This would seem to be a more accurate description. Once you make that change and run the scanner again, you may see more errors relating to the schema and we can work through those too (for example, you'll probably need to set familname and givenName).
With all of that said, you should know that currently there are no rich snippets that you will gain from adding this schema data. Properly setting this up on your page, is only good to do, especially since we don't know what rich snippets Google or others will expose in the future, but currently you won't see any additional rich snippets in Google search results from adding these tags. I don't want to discourage you from setting this up properly but I just want to set your expectations.