Comments (6)
I fixed the mem over-run in commit 405aaf9
from link-grammar.
I think the mem over-run was exposed by the hebrew dict, since it does not use a left/right wall
from link-grammar.
Indeed. But it still doesn't explain why this is considered by the code to be a valid linkage.
from link-grammar.
Well, the miscount is happening at line 210 of count.c but I don't see a fix. The test there is that: if two words are next to each other, and there are no dangling connectors, then everything must be good and so it counts 1. But in this case, there are no connectors at all ... which is an equivalent condition.
from link-grammar.
also: the bug will go away if you add left, right walls to he, because that way, there will always be at least one link, from left to the right wall....
from link-grammar.
$ link-parser he
linkparser> x
Found 1 linkage (1 had no P.P. violations)
Unique linkage, cost vector = (UNUSED=1 DIS= 0.00 LEN=0)[x]
This problem (of indicating a complete linkage when there is none) doesn't exists by now.
But another one exists instead (a duplicate linkage):
linkparser> x
No complete linkages found.
Found 2 linkages (2 had no P.P. violations) at null count 1
Linkage 1, cost vector = (UNUSED=2 DIS= 0.00 LEN=0)
LEFT-WALL [x]
Press RETURN for the next linkage.
linkparser>
Linkage 2, cost vector = (UNUSED=2 DIS= 0.00 LEN=0)
LEFT-WALL [x]
This problem (of duplicate linkages resulting from "empty disjuncts") has been solved in PR #1042 (waiting for application).
from link-grammar.
Related Issues (20)
- Open work items for 5.12.5 HOT 12
- Word "test" in English dict 5.12.1 vs older ones HOT 3
- `www.abisource.com` is not accessible HOT 16
- Make - failure to find link-names.o HOT 3
- LICENSE file mentioned twice in README HOT 1
- NEWS file is out of date HOT 2
- Unexpanded variable in configure help output HOT 2
- Update config.guess and config.sub files HOT 2
- ASpell is still enabled by default although the ChangeLog says it's disabled by default HOT 4
- Build errors when enabling pcre2 on macOS HOT 2
- Add macOS builds to CI
- link-generator defaults to Lithuanian HOT 1
- link-generator -l en uses unexpectedly high memory and CPU HOT 14
- warning: result of comparison of constant 18446744073709551615 with expression of type 'uint16_t' (aka 'unsigned short') is always true [-Wtautological-constant-out-of-range-compare] HOT 2
- warning: comparison of integers of different signs: 'yy_size_t' (aka 'unsigned long') and 'int' [-Wsign-compare] HOT 4
- Java: warning: [removal] Character(char) in Character has been deprecated and marked for removal HOT 1
- Apparent Hunspell problem seen in Debian build of 5.12.3
- multi-dict and multi-thread tests crash with a segmentation fault on macOS when built with pcre2 HOT 2
- Tarball for 5.12.4 reports a bad GPG signature HOT 5
- Configuring with --enable-debug misses finding opencog/atomspace/AtomSpace.h HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from link-grammar.