Hi all,
I’m interested in doing something like this:
a: (_1?~noun)
if ($tags_level >= 0) {
^createfact(^join(user__ _1) is_a noun)
}
b: ($tags_level >= 1 _1?~noun_singular)
^createfact(^join(user__ _1) is_a noun_singular)
b: ($tags_level >= 1 _1?~noun_plural)
^createfact(^join(user__ _1) is_a noun_plural)
The goal is to save some of the POS tags and other semantic tags in user facts for later use.
But, I want to be able to control the semantic \ grammatical deepness as in the example above.
So, the first question is technically, how to write multiple conditions to determine if the rule fail or not. I don’t seems to be able to find a correct way of doing so.
The second is more theoretically, what’s the best way to divide the tags into levels, so for example, tags such as:
level 0: basic pos tags (noun, proper noun)
level 1: more specific pos categories (plural, singular)
level 2: sentence structure tags (subject, object)
level x: attributes such as: ~tool…
level y: attributes such as: ~enterable \ ~immovable
and so on.
I’m looking for a simple way to determine this, maybe wordnet has some tricks for it or the ChatScript mechanism already works with some groups of marks / tags I can use.
Thanks in advance,
Sam