@@ -16,7 +16,7 @@ ColorImage{size(img)...}
16
16
17
17
# Persistence diagrams
18
18
19
- ST. scitype (:: PersistenceDiagram , :: DefaultConvention ) = PersistenceDiagram
19
+ # ST.scitype(::PersistenceDiagram, ::DefaultConvention) = PersistenceDiagram
20
20
21
21
# CategoricalArray scitype
22
22
@@ -66,34 +66,6 @@ ST.scitype(::Distributions.Sampleable{F,S}) where {F,S} =
66
66
ST. scitype (:: Distributions.Distribution{F,S} ) where {F,S} =
67
67
Density{space_scitype (F,S)}
68
68
69
- # Text analysis - EXPERIMENTAL
70
-
71
- # This would be less of a hack if some of #155 were adopted.
72
-
73
- type2scitype (T:: Type ) = ST. Scitype (T, DefaultConvention ())
74
- type2scitype (:: Type{<:AbstractVector{T}} ) where T =
75
- AbstractVector{type2scitype (T)}
76
- type2scitype (:: NTuple{N,T} ) where {N,T} = NTuple{type2scitype{T}}
77
- const PlainNGram{N} = NTuple{N,<: AbstractString }
78
- const TaggedNGram{N} = NTuple{N,<: CorpusLoaders.TaggedWord }
79
- ST. scitype (:: TaggedWord , :: DefaultConvention ) = Annotated{Textual}
80
- ST. scitype (:: Document{<:AbstractVector{T}} , :: DefaultConvention ) where T =
81
- Annotated{AbstractVector{type2scitype (T)}}
82
- ST. scitype (:: AbstractDict{<:AbstractString,<:Integer} ,
83
- :: DefaultConvention ) = Multiset{Textual}
84
- ST. scitype (:: AbstractDict{<:TaggedWord,<:Integer} ,
85
- :: DefaultConvention ) = Multiset{Annotated{Textual}}
86
- ST. scitype (:: AbstractDict{<:Union{TaggedWord,AbstractString},<:Integer} ,
87
- :: DefaultConvention ) =
88
- Multiset{Union{Textual,Annotated{Textual}}}
89
- ST. scitype (:: AbstractDict{<:PlainNGram{N}} ) where N =
90
- Multiset{NTuple{N,Textual}}
91
- ST. scitype (:: AbstractDict{<:TaggedNGram{N}} ) where N =
92
- Multiset{NTuple{N,Annotated{Textual}}}
93
- ST. scitype (:: AbstractDict{<:PlainNGram} ) =
94
- Multiset{NTuple{<: Any ,Textual}}
95
- ST. scitype (:: AbstractDict{<:TaggedNGram} ) =
96
- Multiset{NTuple{<: Any ,Annotated{Textual}}}
97
69
98
70
# Scitype for fast array broadcasting
99
71
@@ -104,6 +76,4 @@ ST.Scitype(::Type{<:TimeType}, ::DefaultConvention) = ScientificTimeTy
104
76
ST. Scitype (:: Type{<:Date} , :: DefaultConvention ) = ScientificDate
105
77
ST. Scitype (:: Type{<:Time} , :: DefaultConvention ) = ScientificTime
106
78
ST. Scitype (:: Type{<:DateTime} , :: DefaultConvention ) = ScientificDateTime
107
- ST. Scitype (:: Type{<:PersistenceDiagram} , :: DefaultConvention ) = PersistenceDiagram
108
- ST. Scitype (:: Type{<:TaggedWord} , :: DefaultConvention ) =
109
- Annotated{Textual}
79
+ # ST.Scitype(::Type{<:PersistenceDiagram}, ::DefaultConvention) = PersistenceDiagram
0 commit comments