Giter VIP home page Giter VIP logo

Comments (6)

linas avatar linas commented on June 14, 2024

I fixed the mem over-run in commit 405aaf9

from link-grammar.

linas avatar linas commented on June 14, 2024

I think the mem over-run was exposed by the hebrew dict, since it does not use a left/right wall

from link-grammar.

ampli avatar ampli commented on June 14, 2024

Indeed. But it still doesn't explain why this is considered by the code to be a valid linkage.

from link-grammar.

linas avatar linas commented on June 14, 2024

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.

linas avatar linas commented on June 14, 2024

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.

ampli avatar ampli commented on June 14, 2024

$ 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.