1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 06:11:49 +03:00
Commit Graph

7020 Commits

Author SHA1 Message Date
Rob Rix
5724d2cbb3 Use k-d trees to look up the nearest neighbour. 2016-06-24 11:10:18 -04:00
Rob Rix
b69e87f4f5 Rename diffAgainstNearestNeighbour to findNearestNeighbourTo. 2016-06-24 10:47:34 -04:00
Rob Rix
dff102aaa6 Clean up the nested cases on Maybe with do notation. 2016-06-24 10:20:31 -04:00
Rob Rix
1489213e99 Merge branch 'master' into random-walk-similarity 2016-06-23 17:31:19 -04:00
Rob Rix
1dac9cfb08 Diff against nearest neighbours. 2016-06-23 16:46:58 -04:00
Rob Rix
b5f9d94e80 Pass a getLabel function to rws. 2016-06-23 16:34:43 -04:00
Rob Rix
c1a2617fa1 Interpretation must operate over terms with extensible annotations. 2016-06-23 16:34:13 -04:00
Rob Rix
0b37ae936b Diff terms of records. 2016-06-23 16:30:43 -04:00
Rob Rix
365e84301d Add an Arbitrary instance for Category. 2016-06-23 16:29:19 -04:00
Rob Rix
0dec4c2879 Add a header above the instances. 2016-06-23 16:25:49 -04:00
Rob Rix
b604ddd446 FlexibleContexts all the things. 2016-06-23 16:19:51 -04:00
Rob Rix
ae55c9480a Generalize nearestNeighbour. 2016-06-23 11:45:17 -04:00
Rob Rix
ed552da2af Swap the d/bag arguments in featureVector. 2016-06-23 10:34:23 -04:00
Rob Rix
6c8ee2958a Rename a to leaf. 2016-06-23 10:23:27 -04:00
Rob Rix
a9f251e42f Test against trees annotated with their labels directly. 2016-06-23 10:19:45 -04:00
Rob Rix
a657295ae6 Generalize pqGrams over a getLabel accessor again. 2016-06-23 10:18:39 -04:00
Rob Rix
c85c87ad65 Okay FINE, hlint! 2016-06-23 10:11:48 -04:00
Rob Rix
c9b26f2da8 Category is Hashable. 2016-06-23 09:55:48 -04:00
Rob Rix
a58463007e Derive a Generic instance for Category. 2016-06-23 09:55:43 -04:00
Rob Rix
6133903e8c Extract the label from a record. 2016-06-23 09:52:15 -04:00
Rob Rix
220687da5e 🔥 the old spec. 2016-06-23 09:51:55 -04:00
Rob Rix
011623e028 Correct the spec module import. 2016-06-23 09:51:47 -04:00
Rob Rix
9b8e9305e4 Shrink arbitrary records. 2016-06-23 09:46:44 -04:00
Rob Rix
656d8318ad Add an Arbitrary instance over Data.Record. 2016-06-23 09:45:41 -04:00
Rob Rix
4a8b7631bb Stub in a Data.Record.Arbitrary module. 2016-06-23 09:42:43 -04:00
Rob Rix
8d164480ee Extract the root stem assignment into a setRootStem function. 2016-06-23 09:39:08 -04:00
Rob Rix
2faf708435 Extract the root base assignment into a setRootBase function. 2016-06-23 09:37:43 -04:00
Rob Rix
167386fcfb Produce correct diffs in the general case. 2016-06-23 09:28:35 -04:00
Rob Rix
fc7dfe4f0f Diff all-inserted and all-deleted cases correctly. 2016-06-22 18:09:30 -04:00
Rob Rix
2d709e1fc7 Add RWS operations. 2016-06-22 18:09:11 -04:00
Rob Rix
7b3cb50165 Stub in an rws function. 2016-06-22 18:01:43 -04:00
Rob Rix
1170bfdcb2 Rename Data.Gram to Data.RandomWalkSimilarity. 2016-06-22 17:59:28 -04:00
Rob Rix
108decbcaa Reformatting. 2016-06-22 17:48:56 -04:00
Rob Rix
bc21d2f3b2 Find the nearest neighbour in the worst possible way. 2016-06-22 17:33:40 -04:00
Rob Rix
5684017e80 Extract magnitude to the top level. 2016-06-22 17:33:27 -04:00
Rob Rix
186c751d8d Set bases through key/value pairs. 2016-06-22 16:51:17 -04:00
Rob Rix
1273f1bce9 Assign sibling labels, padding out to q. 2016-06-22 16:46:56 -04:00
Rob Rix
4292d7d94e Provide each element to the windowed combining function. 2016-06-22 16:25:27 -04:00
Rob Rix
9877b71f96 Produce a single gram per child. 2016-06-22 16:24:54 -04:00
Rob Rix
f553cac094 Specialize pqGrams to Cofree of Syntax. 2016-06-22 16:17:54 -04:00
Rob Rix
5bdbf3eb7d 🔥 a type signature. 2016-06-22 16:09:59 -04:00
Rob Rix
ff5059dff1 Add a windowed fold operator. 2016-06-22 15:55:54 -04:00
Rob Rix
ea717c6582 Test that we produce grams with bases of length q. 2016-06-22 15:55:39 -04:00
Rob Rix
e15af19835 🔥 a redundant import. 2016-06-22 15:55:15 -04:00
Rob Rix
0092655cb6 Clean up the tests. 2016-06-22 15:55:11 -04:00
Rob Rix
a5f1926b63 Tidying. 2016-06-22 15:21:54 -04:00
Rob Rix
fa64af054d Merge branch 'master' into random-walk-similarity 2016-06-22 15:19:32 -04:00
Rob Rix
f1d190326c Remove children from the unpacking function. 2016-06-22 15:18:37 -04:00
Rob Rix
dac5431c1b Fold instead of unpacking children. 2016-06-22 15:17:39 -04:00
Rob Rix
6e3c9ddd00 Flesh out stems from the root. 2016-06-22 15:15:44 -04:00