mirror of
https://github.com/github/semantic.git
synced 2025-01-06 23:46:21 +03:00
Derive Eq, Ord, & Show instances for FeatureVector.
This commit is contained in:
parent
cd3d579bd0
commit
f126756672
@ -43,6 +43,7 @@ type Label f fields label = forall b. TermF f (Record fields) b -> label
|
|||||||
type ComparabilityRelation syntax ann1 ann2 = forall a b. TermF syntax ann1 a -> TermF syntax ann2 b -> Bool
|
type ComparabilityRelation syntax ann1 ann2 = forall a b. TermF syntax ann1 a -> TermF syntax ann2 b -> Bool
|
||||||
|
|
||||||
newtype FeatureVector = FV { unFV :: UArray Int Double }
|
newtype FeatureVector = FV { unFV :: UArray Int Double }
|
||||||
|
deriving (Eq, Ord, Show)
|
||||||
|
|
||||||
-- | A term which has not yet been mapped by `rws`, along with its feature vector summary & index.
|
-- | A term which has not yet been mapped by `rws`, along with its feature vector summary & index.
|
||||||
data UnmappedTerm syntax ann = UnmappedTerm
|
data UnmappedTerm syntax ann = UnmappedTerm
|
||||||
|
Loading…
Reference in New Issue
Block a user