Crates.io | layered-nlp |
lib.rs | layered-nlp |
version | 0.1.1 |
source | src |
created_at | 2021-05-05 23:57:00.537943 |
updated_at | 2021-05-06 21:52:57.179653 |
description | Highly-flexible data-oriented NLP framework |
homepage | https://github.com/storyscript/layered-nlp |
repository | https://github.com/storyscript/layered-nlp |
max_upload_size | |
id | 393626 |
size | 164,488 |
Incrementally build up recognizers over an abstract token that combine to create multiple possible interpretations.
Key features:
The key idea here is to enable starting from a bunch of vague tags and slowly building meaning up through incrementally adding information that builds on itself.
Simplification: Money = '$' + Number
$ 123 . 00
╰Natural
╰Punct
╰Natural
╰Amt(Decimal)╯
╰Money($/£, Num)─╯
Simplification:
Location(NYC) = 'New' + 'York' + 'City'
Location(AMS) = 'Amsterdam'
Address(Person, Location) = Person + Verb('live') + Predicate('in') + Location
I live in New York City
╰Noun
╰Noun
╰Adj
╰Predicate
╰Verb
╰Noun
╰Person(Self)
╰──Location─╯
╰────Address(Person, Location)─────╯