How to enable web users to interact with a REST API - wordpress

Hi and thank you for looking into this.
(Disclaimer: I have little-to-no technical background and would like to find the least complex solution. Ideally, only "connecting" different out-of-the-box components and no coding.)
HIGH-LEVEL PROBLEM:
I have trained a model for text classification using Google AutoML. I want to make this model available on a website, ie I want to enable visitors to enter their text and to receive the model's predicted class.
CONSIDERATIONS SO FAR: AutoML allows us to deploy the model via REST API and I understand that what I want are the API's PUT and GET function (right?). Ideally, I would use some form of plug-in or script to create an input field for the user which accepts the PUT and then delivers the GET.
Are you aware of any services for this? I'm also happy to host the website in an content management system like WordPress.
I'm very open regarding other approaches to solving my problem and highly appreciate any constructive input.
Many thanks!
AutoML Documentation https://cloud.google.com/natural-language/automl/docs/predict
EDIT Jan 10 There is another question related to this and a depo is shared which supposedly provided a solution. I'm not able to access the depo but the question might help you to understand my issue. Is there a way to use Googles AutoML with JavaScript?
EDIT Jan 16 I have learned that in order to provide the input to the model the POST function could be used instead of the PUT.

Related

Can Firebase ML Kit be used to detect how likely a photo contains an object present into another photo?

I would like to implement a webcrawler that would be able to, given a photo of an object, search for it in a specific website.
I'm looking into Firebase ML Kit to do the job, more specificaly the Objects detection section but it is still unclear to me if that would be the right tool.
Anyone knows how could I implement that?
Comparing photos (or searching for photos) is not a use-case that ML Kit offers a pre-built model for.
The closest I can think of is running the ML Kit label extraction model on both images, and then checking if both return the same label(s). But even then you need to have all photo's locally already.
If you want something closer, you'll have to build a model yourself. But even then, you're likely going to need to build an extensive web service that searches web sites and pre-labels a lot of images.

Send quiz interaction text to LMS

I am trying to implement the SCORM 1.2 in one of my LMS using the following site as a reference:
www.vsscorm.net
It is running perfectly. But I am not able to save the Quiz question text into the database.
The following information gets stored in database:
cmi.interactions.0.type
cmi.interactions.0.student_response
cmi.interactions.0.correct_responses.0.pattern
cmi.interactions.0.result
cmi.interactions.0.weighting
cmi.interactions.0.latency
cmi.interactions.0.objectives.0.id
I googled and get to know that the question text is stored in cmi.interactions.n.text, which is somehow not storing in the database.
Or maybe SCROM 1.2 doesn't support it. Since I am a newbie in SCORM, any expert advice will be highly appreciated. Thank you.
cmi.interactions.n.text does not appear to be part of the RTE specification (see "technical specification here: https://adlnet.gov/adl-research/scorm/scorm-1-2/), so is unlikely to work in a lot of LMSs. (Also see https://support.scorm.com/hc/en-us/articles/206166436-Question-Descriptions-in-SCORM-1-2 and https://support.scorm.com/hc/en-us/articles/206166696-Questions-Answers-and-how-much-you-can-report-in-SCORM-1-2-and-2004)
There isn't a great way to store this data using the SCORM 1.2 interaction model. SCORM 2004 added a "description" data point that is commonly used to store this value.
The couple of references to the .text element that I saw were customizations for a particular LMS.

Azure Cognitive Services Content Moderation can't find some simple stopwords

Content moderation api for text fails recognizing simple drugs term as "cocaine" and other simple profanities. It seems to work only on a very limited set of profanities.
I'm using the Web GUI with my resouce key at the address: https://westus.dev.cognitive.microsoft.com/docs/services/57cf753a3f9b070c105bd2c1/operations/57cf753a3f9b070868a1f66f/console
Cristian, Content Moderator's Text API is for filtering out profanity specifically and does not check for mention of drugs.
You can use the custom lists API to create your stop-words that the API will use to scan against in addition to the built-in list of terms.
See https://westus.dev.cognitive.microsoft.com/docs/services/57cf755e3f9b070c105bd2c2/operations/57cf755e3f9b070868a1f67f.
I would also appreciate knowing more about the sample terms that you felt should have been detected. Let's figure out a way to share those if that's all right with you.
Thanks!

Workflow Foundation 4 - How to create a web based representation of the workflow?

We have to write a ASP.NET site based on a workflow.
The client wants to see a graphical representation of the workflow. In addition (let's say it is a workflow for processing orders), the client wants to see at what point in the workflow any given order is, indicated on the graphical workflow representation by a highlighted node or some visual queue.
All of this must be available via a web interface.
Was hoping somebody had some bright ideas for how to achieve this without writing extensive custom controls.
Does Workflow Foundation 4 offer anything itself that would assist toward this end?
There are ways to use the WorkflowDesigner and issue the save image command through code but as it's a WPF control it needs to be hosted on a WPF form. I have tried to do this from a webpage but as the form isn't visible it has a size of 0. I didn't spend a lot of time in this so it might be possible.
See this for details on how to do so.

To Develop LMS and Scorm Sequesncing Engine

We want a LMS(coded in ASP.NET/vb.net) which is able to import SCORM packages & display it to learner for viewing content. I am totally new to SCORM and have been shifted to this project. I want to know how can I access SCORM Assessment object's (Test) result, like Learner ID, passed/fail, time.
Can you please guide me what will I need to implement in ASP.NET code to accomplish my goal ?
Task that I have done so far is,
Reading a manifest zip file, unzipping the file and get all information from the file(content name,description,items and launching page) and when user clicks on a particular course a pop up window is launching the page.
I eagerly want to know what I can do next to communicate with the LMS with the APIs. Shall I need to develop my own LMS to get the result,If there is a quiz which is running, all I need to know is the no of questions attempted by the user, whether the user is pass or fail and I need to store all information in the database for individual user so that I can review the result afterwards.
So the task remaining.
Tracking mechanism to deliver the content.
SCORM/LMS sequencing engine that controls the navigation between parts of SCORM conformant course.
Please help.
SLK at codeplex provides a good starting point. However, if you are truly wanting to provide an in-house written SCORM play that is fully compliant, you have a major task ahead of you. In essence there are three party you need to fully develop:
CAM - the unzipping process, which it sounds like you have already achieved.
RTE - the javascript host for SCORM, providing the 8 specified methods. Behind this you also need to implement the SCORM object model, which SLC does help with. If you have implemented all of this, then there should be data entries on the data model that indicate completion etc.
SN - the sequencing and navigation processing. This is significantly the most complex part. I am still in the process of trying to implement this, using SLC, and it is hard. It is the completion of this that will potentially give you more information that will enable you to know what has been done.
it is also worth looking at scorm.com, who are a consultancy, but provide a lot of useful information about the scorm standard.
That is true. SCORM is one of these stadarts where you can implement as little as possible. But you will need some of Javascript with a Backend-Script (JSON to the rescue) so you can track the scorm data, and save it your database.
But let me tell you this: This is the easiest task! Making your own course-creator is a whole other beast.

Resources