Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
themeEclipse
titleExample Configuration
{
    "type": "NumberRecognizer",
    "scientificNotation": false,
    "ordinals": true,
	"romans": false,
	"ordinalsLang": "en"
}

Flags

Lex-Item Flags:

  • LEX_ITEM - Identifies then token as lexical item.
  • NUMBER - Flagged on all tokens which are numbers according to the rules above.
  • SEMANTIC_TAG - Identifies all lexical items which are semantic tags.

Example

Code Block
languagetext
themeFadeToGrey
V----------[1984 42 -10 3.14 ]-----------V  
^--[1984]--V--[42]--V--[-10]--V--[3.14]--^  
^----[#]---V---[#]--V---[#]---V----[#]---^  

Item [1984] - [NUMBER,TOKEN]
Item [42]   - [NUMBER,TOKEN]
Item [-10]  - [NUMBER,TOKEN]
Item [3.14] - [NUMBER,TOKEN]