artificial intelligence - implement named entity recognition into AIML

146 Views Asked by At

Good day, everyone. So I found a paper that implement named entity recognition as pattern in AIML. As far as I know, in AIML must be uppercase and have no punctuation in it. But in the paper that I mention earlier, they use their pattern with entity and their value e.g Question:DIMANA,Others:LOKASI, etc. So I just want to ask guys, is it possible to write inside like that? Here is example code that had been provided in the paper.

<aiml version="2.0" encoding="UTF-8"?>
    <category>
        <pattern>
            Question:DIMANA,Others:LOKASI,Organization:ITHB
        </pattern>
        <template>
            Lokasi Universitas berada di Jalan....
        </template>
    </category>
</aiml> 

By the way, I use Python AIML for the intepreter of AIML. Here is the link to the paper: https://journal.ithb.ac.id/telematika/article/view/130 (the paper is in Bahasa)

1

There are 1 best solutions below

1
Ubercoder On

It's not possible to tell without reading the full paper. But:

Question:DIMANA,Others:LOKASI,Organization:ITHB

is not a valid AIML pattern as it should not contain commas or colons, and it should be upper case. My guess is the authors of the paper use some pre-processor to insert valid AIML pattern strings in place of the Question, Others and Organization elements.