mirror of
https://github.com/github/semantic.git
synced 2024-11-28 10:15:55 +03:00
Use the FeatureVector type synonym.
This commit is contained in:
parent
0c5225515e
commit
84a0c70a7c
@ -49,5 +49,5 @@ spec = parallel $ do
|
||||
| otherwise = if ((==) `on` category . extract) a b then Just (replacing a b) else Nothing
|
||||
copying :: Functor f => Cofree f (Record fields) -> Free (CofreeF f (Both (Record fields))) (Patch (Cofree f (Record fields)))
|
||||
copying = cata wrap . fmap pure
|
||||
decorate :: SyntaxTerm leaf '[Category] -> SyntaxTerm leaf '[Vector.Vector Double, Category]
|
||||
decorate :: SyntaxTerm leaf '[Category] -> SyntaxTerm leaf '[FeatureVector, Category]
|
||||
decorate = defaultFeatureVectorDecorator (category . headF)
|
||||
|
Loading…
Reference in New Issue
Block a user