Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix very old max cost bug #1450

Merged
merged 2 commits into from
Feb 25, 2023
Merged

Fix very old max cost bug #1450

merged 2 commits into from
Feb 25, 2023

Conversation

linas
Copy link
Member

@linas linas commented Feb 24, 2023

The point of cost-max was not to compute the total cost of an expression, but to determine which expressions had single connectors that exceeded a threshold. This allows disjuncts which high-cost individual connectors to be rejected, without otherwise altering parse ranking.

See #1449 for details.

This makes greps simpler.
Dennis had it right. See issue opencog#1449
This improves parsing of real sentences, without causing damage
elsewhere.
@linas
Copy link
Member Author

linas commented Feb 24, 2023

See also #783

@linas linas merged commit 29eac7d into opencog:master Feb 25, 2023
@linas linas deleted the max-cost-fix branch February 25, 2023 01:38
@linas
Copy link
Member Author

linas commented Feb 25, 2023

I merged this, but the next pull req will delete it entirely.

linas added a commit to linas/link-grammar that referenced this pull request Feb 25, 2023
It was confusing, broken, and prevented good parses from happening.
See opencog#1450 opencog#1449 and opencog#783 and opencog#1453
linas added a commit to linas/link-grammar that referenced this pull request Feb 25, 2023
The pull req opencog#1456 broke the existing russian dict.
This fixes it.  Seems that a cost cutoff of 3.1 is too low,
as it rejects many good linkages that come from
[[FOO]] & [[BAR]] disjuncts. a cutoff of 4.1 allows these,
while rejecting the cost-6 linkages that ruin corpus-basic.

As of now, I get 45 errors in ru/corpus-basic.batch which is
two less than the 47 that I got, before merging opencog#1450
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant