Inteligencia artificial en el aula con Scratch 3.0 (Tutorial 2 de 8) | INTEF | YouTubeToText
YouTube Transcript: Inteligencia artificial en el aula con Scratch 3.0 (Tutorial 2 de 8)
Skip watching entire videos - get the full transcript, search for keywords, and copy with one click.
Share:
Video Transcript
[Music]
we can improve the virtual assistant code by
adding more
alphanumeric strings with which you compare a
good solution to implement this
idea is the use of lists so that
each order corresponds to a list and
each list contains text strings that
mean the same thing let's see how we
can do this in practice
in scratch we have the
variable blocks that offer us the possibility
of creating lists let's create a list
for each order that we want to implement
turn on the light it will be the list that contains
all the texts that have to do with
that order turn off the light turn on the
turn on the fan
fan
and finally the list for the order to pay the
pay the fan
the next step would be to fill each
of the lists with texts that have to do
with the order in question for example
for the order turn on the light we can
add turn on
the light or turn on the light
light
or turn on
the lamp
or anything that occurs to us that
means the same thing turn on the light the
same for turn off the light for the light
etc.
next we are going to hide the
lists from the screen
and the next step would be to replace these conditions
conditions
these conditionals in which
the response is compared with a text by
another conditional that checks if the
answer is within one of the
lists that we just created we can
do it using the boolean block
thing is in list where thing would be the
answer that we get from the user and the
list well each of the lists that we
just created turn on light
and with this we have a new version of the
assistant a little bit smarter
something smarter because it is capable of
interpreting more texts that mean the
same order our option for example we
can turn on the lamp with this order
order
with turn on the light or turn it off connect
turn off the light
we can turn it on again with turn on
the light it is another different order with the
or turns it off with one for him they
although we have gained something we cannot
say that it is a very
effective assistant to begin with we still have the
problem that the writing errors
continue not being interpreted for example if
I put something like turn on the light
well he does not know how to interpret it because that
string is not in any of the lists
that we just created
in the same way and an endless number of
pressures that we can use to
say that we want to turn the lamp on or off
like for example turn on the lamp it is not
going to interpret it either
and many more that we can think of
but there are also
more subtle expressions that can be
used to launch these orders for
obviously continues it is not capable of
interpreting that phrase
if we want it to really continue
interpreting all of this then we will have to
add a number a practically
infinite number to each one of the lists that we have just
created and that is simply not
possible so until we have
arrived at the strategy of comparing
phrases with lists of
alphanumeric strings nothing more can be done nothing
much more can be done if we continue along
this path [Music]
Click on any text or timestamp to jump to that moment in the video
Share:
Most transcripts ready in under 5 seconds
One-Click Copy125+ LanguagesSearch ContentJump to Timestamps
Paste YouTube URL
Enter any YouTube video link to get the full transcript
Transcript Extraction Form
Most transcripts ready in under 5 seconds
Get Our Chrome Extension
Get transcripts instantly without leaving YouTube. Install our Chrome extension for one-click access to any video's transcript directly on the watch page.