Skip to content

Commit

Permalink
fixed bug in search (.f<g.)
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkroorda committed Nov 17, 2021
1 parent 947aa50 commit d9218a2
Show file tree
Hide file tree
Showing 8 changed files with 533 additions and 214 deletions.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"text-fabric-make = tf.client.make.build:main",
]
},
version='9.1.5',
version='9.1.6',
description="""Processor and browser for Text Fabric Data""",
author="Dirk Roorda",
author_email="[email protected]",
Expand Down
723 changes: 515 additions & 208 deletions test/query/featureComparison.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion text_fabric.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: text-fabric
Version: 9.1.5
Version: 9.1.6
Summary: Processor and browser for Text Fabric Data
Home-page: https://github.com/annotation/text-fabric
Author: Dirk Roorda
Expand Down
12 changes: 12 additions & 0 deletions tf/docs/about/releases.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,18 @@ text-fabric appName:hot

### 9.0

#### 9.1.6

2021-11-17

Bug in search, spotted by Oliver Glanz, with thanks to him for reporting it.
Queries with `.f<g.` constructs in it (numeric feature comparison)
delivered wrong results.
The root cause waas clear: I declared the converse of `.f<g.` to be `.g>f.`.
But this is not the converse, the two are identical.
The converse is `.f>g.`.
See [code](https://github.com/annotation/text-fabric/blob/947aa5071d545ed5c875fe24eeb7329d4a8e9893/tf/search/relations.py#L1450-L1457)

#### 9.1.5

2021-11-17
Expand Down
2 changes: 1 addition & 1 deletion tf/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from zipfile import ZIP_DEFLATED


VERSION = '9.1.5'
VERSION = '9.1.6'
"""Program version.
This value is under control of the update process, as run by
Expand Down
6 changes: 3 additions & 3 deletions tf/search/relations.py
Original file line number Diff line number Diff line change
Expand Up @@ -1449,11 +1449,11 @@ def edgeSR(fTp, tTp):
),
(
(".f>g.", 0.4, leftFgreaterRightGR, "left.f > right.g"),
(".g<f.", 0.4, leftGlesserRightFR, None),
(".f<g.", 0.4, leftFlesserRightGR, None),
),
(
(".f<g.", 0.4, leftFlesserRightGR, "left.f > right.g"),
(".g>f.", 0.4, leftGgreaterRightFR, None),
(".f<g.", 0.4, leftFlesserRightGR, "left.f < right.g"),
(".f>g.", 0.4, leftFgreaterRightGR, None),
),
]

Expand Down

0 comments on commit d9218a2

Please sign in to comment.