මෙම ලිපිය යාවත් කාලීන කිරීම අවශ්යයි. |
ඒඅයිඑම්එල්, භෙවත් අධිකය භාෂාව, යනු සදහා නිර්මාණයට යොදා ගන්නා උපභාෂාවකි.
.aiml | |
ස්ථාපිතය | අගෝස්තු 3, 2001 |
වෙබ්අඩවිය | http://www.alicebot.org/TR/2005/WD-aiml/ |
පසුබිම
එක්ස්එම්එල් උපභාෂාවක් වන ඒඅයිඑම්එල් භාෂාව දියුණු කරනු ලැබුවේ විසිනි ඒ 1995 සහ 2002 යන වසර අතරය.
එක්ස්එම්එල් භාෂාවේ මූලිකාංග
එක්ස්එම්එල් භාෂාවේ මූලිකාංග කිහිපයක් ඇත. මෙහි වැදගත්කම ගැන තවදුරටත් විස්තර පහත ඇත.
ප්රවර්ගීකරණය
Categories in AIML are the fundamental unit of knowledge. A category consists of at least two further elements: the pattern and template elements. Here is a simple category:
<category> <pattern>WHAT IS YOUR NAME</pattern> <template>My name is John.</template> </category>
When this category is loaded, an AIML bot will respond to the input "What is your name" with the response "My name is John."
නිදර්ශන
A pattern is a string of characters intended to match one or more user inputs. A literal pattern like
WHAT IS YOUR NAME
will match only one input, ignoring case: "what is your name". But patterns may also contain wildcards, which match one or more words. A pattern like
WHAT IS YOUR *
will match an infinite number of inputs, including "what is your name", "what is your shoe size", "what is your purpose in life", etc.
The AIML pattern syntax is a very simple pattern language, substantially less complex than and as such not even of level 3 in the . To compensate for the simple pattern matching capabilities, AIML interpreters can provide preprocessing functions to expand abbreviations, remove misspellings, etc.
අච්චුව
A template specifies the response to a matched pattern. A template may be as simple as some literal text, like
My name is John.
A template may use variables, such as the example
My name is <bot name="name"/>.
which will substitute the bot's name into the sentence, or
You told me you are <get name="user-age"/> years old.
which will substitute the user's age (if known) into the sentence.
Template elements include basic text formatting, conditional response (if-then/else), and random responses.
Templates may also redirect to other patterns, using an element called srai. This can be used to implement synonymy, as in this example (where is used to avoid the need for (XML escaping)):
<category> <pattern>WHAT IS YOUR NAME</pattern> <template><![CDATA[My name is <bot name="name"/>.]]></template> </category> <category> <pattern>WHAT ARE YOU CALLED</pattern> <template> <srai>what is your name</srai> </template> </category>
The first category simply answers an input "what is your name" with a statement of the bot's name. The second category, however, says that the input "what are you called" should be redirected to the category that matches the input "what is your name"--in other words, it is saying that the two phrases are equivalent.
Templates can contain other types of content, which may be processed by whatever user interface the bot is talking through. So, for example, a template may use HTML tags for formatting, which can be ignored by clients that don't support HTML.
විමර්ශනය
AIML is considered clever and simple, and a good start for beginners writing simple bots. However, it is difficult to maintain and author more complex bots, and has weak pattern matching ability . However, it is
විකිපීඩියාව, විකි, සිංහල, පොත, පොත්, පුස්තකාලය, ලිපිය, කියවන්න, බාගන්න, නොමිලේ, නොමිලේ බාගන්න, mp3, වීඩියෝ, mp4, 3gp, jpg, jpeg, gif, png, පින්තූරය, සංගීතය, ගීතය, චිත්රපටය, පොත, ක්රීඩාව, ක්රීඩා., ජංගම දුරකථන, android, ios, apple, ජංගම දුරකථන, samsung, iphone, xiomi, xiaomi, redmi, honor, oppo, nokia, sonya, mi, පීසී, වෙබ්, පරිගණකය
ම ම ල ප ය ය වත ක ල න ක ර ම අවශ යය වත මන ස ද ව ම වල න සහ නවතම ත රත ර වල න ම ම ල ප ය ය වත ක ල න ක ර මට ක ර ණ ක වන න ඒඅය එම එල භ වත ක ත ර ම බ ද ධ අධ කය භ ෂ ව යන එක ස එම එල සදහ න ර ම ණයට ය ද ගන න උපභ ෂ වක ක ත ර ම බ ද ධ අධ කය භ ෂ වවර ගය aimlප රභ දයක ත ර ම බ ද ධ යස ථ ප තයඅග ස ත 3 2001 වසර 23 කට ප ර 2001 08 03 හ ම කර වන ර චඩ එස ව ල ස ව ද ය ඥය ව බ අඩව යhttp www alicebot org TR 2005 WD aiml පට න 1 පස බ ම 2 එක ස එම එල භ ෂ ව ම ල ක ග 2 1 ප රවර ග කරණය 2 2 න දර ශන 2 3 අච ච ව 3 ව මර ශනයපස බ මස ස කරණයඑක ස එම එල උපභ ෂ වක වන ඒඅය එම එල භ ෂ ව ද ය ණ කරන ල බ ව ර චඩ එස ව ල ස ව ද ය ඥය ව ස න ඒ 1995 සහ 2002 යන වසර අතරය එක ස එම එල භ ෂ ව ම ල ක ගස ස කරණයඑක ස එම එල භ ෂ ව ම ල ක ග ක හ පයක ඇත ම හ ව දගත කම ග න තවද රටත ව ස තර පහත ඇත ප රවර ග කරණයස ස කරණය Categories in AIML are the fundamental unit of knowledge A category consists of at least two further elements the pattern and template elements Here is a simple category lt category gt lt pattern gt WHAT IS YOUR NAME lt pattern gt lt template gt My name is John lt template gt lt category gt When this category is loaded an AIML bot will respond to the input What is your name with the response My name is John න දර ශනස ස කරණය A pattern is a string of characters intended to match one or more user inputs A literal pattern like WHAT IS YOUR NAME will match only one input ignoring case what is your name But patterns may also contain wildcards which match one or more words A pattern like WHAT IS YOUR will match an infinite number of inputs including what is your name what is your shoe size what is your purpose in life etc The AIML pattern syntax is a very simple pattern language substantially less complex than regular expressions and as such not even of level 3 in the Chomsky hierarchy To compensate for the simple pattern matching capabilities AIML interpreters can provide preprocessing functions to expand abbreviations remove misspellings etc අච ච වස ස කරණය A template specifies the response to a matched pattern A template may be as simple as some literal text like My name is John A template may use variables such as the example My name is lt bot name name gt which will substitute the bot s name into the sentence or You told me you are lt get name user age gt years old which will substitute the user s age if known into the sentence Template elements include basic text formatting conditional response if then else and random responses Templates may also redirect to other patterns using an element called srai This can be used to implement synonymy as in this example where CDATA is used to avoid the need for XML escaping lt category gt lt pattern gt WHAT IS YOUR NAME lt pattern gt lt template gt lt CDATA My name is lt bot name name gt gt lt template gt lt category gt lt category gt lt pattern gt WHAT ARE YOU CALLED lt pattern gt lt template gt lt srai gt what is your name lt srai gt lt template gt lt category gt The first category simply answers an input what is your name with a statement of the bot s name The second category however says that the input what are you called should be redirected to the category that matches the input what is your name in other words it is saying that the two phrases are equivalent Templates can contain other types of content which may be processed by whatever user interface the bot is talking through So for example a template may use HTML tags for formatting which can be ignored by clients that don t support HTML ව මර ශනයස ස කරණයAIML is considered clever and simple and a good start for beginners writing simple bots However it is difficult to maintain and author more complex bots and has weak pattern matching ability However it is https si wikipedia org w index php title AIML ක රමල ඛණ භ ෂ ව amp oldid 475890 ව ත න සම ප රව ශනය ක ර ණ