A
A
Alexey Petrov2020-06-29 20:43:46
natural language processing
Alexey Petrov, 2020-06-29 20:43:46

How to combine data from facts obtained in Tomita Parser?

Hello, I'm trying to get OS data from the following text:

...
Операционная система: Windows 7, 8, 10 (64-bit)
...

Wrote the rules:
Number -> AnyWord<wff=/[0-9]+/>;
Bitness -> LBracket'64-bit'RBracket;
ShortPlatforms -> (Comma) Number (Bitness);
PlatformName -> 'widnows' ShortPlatforms+;

S -> PlatformName interp (Platform.Value);


The result is the fact "Windows 7, 8, 10 (64-bit)". Is it possible to make such rules to get the facts "Windows 7", "Windows 8", "Windows 10 (64-bit)" directly?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question