Amir Plivatsky
Amir Plivatsky
`dup_word_error()` uses a static variable as a cache, which is of course wrong. I fixed it by caching in `Dictionary_s`. (In a branch in which I restored the ram dict...
This patch implements affix regexes. The idea is to be able to strip off affixes and split words according to regexes. I initially found it useful for `amy`/`ady`/`any` (one of...
I finished implementing and testinmg it, and here are the examples I used: ``` text % TODO: this list should be expanded with other "typical"(?) junk % that is commonly...
While working on the affix stripping code I noted that subscripted `LPUNC` tokens are mishandled. For example, using "any": ``` text linkparser> ...test Found 1 linkage (1 had no P.P....
While running tests on "amy" with ASN/UBSAN, I got this: ``` ... amy/link-grammar/parse/count.c:1390:7: runtime error: signed integer overflow: 2147483647 * 5569944920 cannot be represented in type 'long int' ... amy/link-grammar/parse/count.c:1390:7:...
Just now it is done in `strtodC()` by invoking`strtof_l()` with the `C` locale. However, if there are systems that don't have this function (those not having `locale_t` and at least...
In [PR #795](https://github.com/opencog/link-grammar/pull/795#issuecomment-404310783) @linas wrote: >The python-examples directory is getting crowded. Perhaps there should be a python-tests directory, either in bindings or in the main tests directory? When the tests...
See for example #303. Many other things in it are also out of date. Will it be a good idea to maintain the link-grammar library documentation here, along with the...
It turned out `SUBSCRIPT_MARK` is not used with the SQL dict. 1. `dictionary_lookup_list()` returnes subscripted words using a dot instead of SUBSCRIPT_MARK. 2. Words that are subscripted with `SUBSCRIPT_MARK` are...
`dictionary_lookup_list()` and `dictionary_lookup_wild()` are part of the API, and words that they return, if subscripted, have `SUBSCRIPT_MARK` in them. However, this symbol is currently not part of the API. Similarly,...