AI Zone Admin Forum Add your forum

NEWS: Chatbots.org survey on 3000 US and UK consumers shows it is time for chatbot integration in customer service!read more..

To put the partial wildcard behind the ~concept
 
 

Hi,

I’d like to put the partial wildcard behind the ~concept because Korean noun is combined a postposition with no space. (including Japanese, Finnish and so on) e.g.

  : appleby applefrom applefor applein etc. (figurative English examples to understand only)

There is no problem when I write one noun word in a pattern because I can use the partial wildcard.

But when I have to write ~concept in the pattern, problems occur.

There are about 20~30 postpositions so it’s hardly difficult to declare ~concept for all noun as combined form with every postpositions.

So it is very helpful if I use a partial wildcard behind ~concept, like this:

  : u: ( ~fruit* )

If possible,

  : u: ( ~sports*2   ~clothes*~3 )


Thank you very much.
Andrew.

 

 
  [ # 1 ]

It is not feasible to use wildcard notation within a concept definition. The words of a concept definition are not analyzed one by one while marking off data in a sentence. But you could define a table where you give a word, and it adds all the suffixes on into a concept for you

 

 
  [ # 2 ]

Yes. Thank you again.

I have not thought of that point. O.K. I’ll try to solve this with a table.

Thank you very much.

 

 
  [ # 3 ]

Hi,

I have nearly solved the above problem.

1. What I want is

  (1) from a original concept ~fruit which has several noun elements

  (2) to get the modified concept ~fruit which has added elements combined original elements with postpositions.

  (3) i.e. if there are 5 elements in the original ~fruit concept and there are 8 postpostions

      then the modified concept ~fruit has finally total 40 elements ( 5*8 = 40)

2. What I have done is to use Tablemacro like this:

# to create fact which has combined elements with every postposition per element.
Tablemacro: ^ConsonantPP(^Origin ^pp)
loop()
{
$$element = ^iterator(? member ^Origin)
$$tmp = join($$element ^pp)
^CreateFact($$tmp member $$element)
}

# then add these elements into the orginal concept
Tablemacro: ^addElements(^Origin)
loop()
{
$$element = ^iterator(? member ^Origin)
^query(? member $$element)
^CreateFact(@0subject member ^Origin)
}

table: ^ConsonantPP (~fruit)
in of from by for out about at

table:^addElements()
~fruit

<end>

   
Thank you very much again.

 

 
  login or register to react