Skip to content

Commit 31fbad6

Browse files
committed
Revert "clean up groupReflections"
This reverts commit bb70285.
1 parent bb70285 commit 31fbad6

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

packages/client/utils/smartGroup/groupReflections.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
import {computeJaccardDistanceMatrix} from './computeJaccardDistanceMatrix'
22
import getGroupMatrix from './getGroupMatrix'
33

4+
type Entity = {
5+
lemma: string
6+
name: string
7+
salience: number
8+
}
9+
10+
type GroupedReflectionRes = {
11+
reflectionId: string
12+
entities: Entity[]
13+
oldReflectionGroupId: string
14+
sortOrder: number
15+
reflectionGroupId: string
16+
}
17+
418
export type GroupingOptions = {
519
groupingThreshold: number
620
maxGroupSize?: number

0 commit comments

Comments
 (0)