Skip to content

BLIST attribute

Introduction

The BLIST attribute is very similar to LIST, but is applied at the atom level of disambiguation output instead of the word level, allowing the user to match sub-tokens (atoms) that, at the word level, would be part of compounds, collocations or idiomatic expressions.

The syntax is:

BLIST(ID1[, ID2, ...])

or:

BLIST(string1[, string2, ...])

where:

  • BLIST is the attribute name and must be written in uppercase.
  • ID# refers to the unique ID assigned to a Knowledge Graph syncon. Unknown numbers are not accepted.
  • string# refers to any sequence of alphabetical characters, numbers and punctuation marks. Any of the strings to be recognized in a document can be made up of one or several words but must be written between quotation marks.

Note

You can use strings along with IDs within the BLIST attribute.

ID syntax

As example to see how BLIST works, this rule:

SCOPE SENTENCE
{
    DOMAIN(dom1)
    {
        LIST(21312)//@SYN: #21312# [equipment]
    }
}

when run against this text:

The fire safety system is outdated.

doesn't find a match, because the term system is part of the collocation lemma fire safety system and is not recognized as a lemma by itself at the word level.

On the other hand, this rule:

SCOPE SENTENCE
{
    DOMAIN(dom1)
    {
        BLIST(21312)//@SYN: #21312# [equipment]
    }
}

matches system at the atom level, where it is not aggregated with lemmas fire and safety.

String syntax

You can use strings instead of IDs with the BLIST attribute. In this case, the BLIST attribute works exactly like the BLEMMA attribute.

Some things to remark:

  • The lemmas must be available in the Knowledge Graph.
  • You can't use level numbers and link names with the string syntax as already described in the LIST attribute page.