Safe Haskell | None |
---|
- newtype FeatIx = FeatIx {}
- data FeatGen o t f = FeatGen {}
- data Model o t f = Model {}
- mkModel :: Ord f => FeatGen o t f -> [Xs o t] -> Model o t f
- data Core f = Core {}
- core :: Model o t f -> Core f
- withCore :: Core f -> FeatGen o t f -> Model o t f
- phi :: Ord f => Model o t f -> f -> LogFloat
- index :: Ord f => Model o t f -> f -> Maybe FeatIx
- presentFeats :: FeatGen o t f -> Xs o t -> Ys t -> [(f, LogFloat)]
- hiddenFeats :: FeatGen o t f -> Xs o t -> [f]
- obFeatsOn :: FeatGen o t f -> Xs o t -> Int -> LbIx -> [f]
- trFeatsOn :: FeatGen o t f -> Xs o t -> Int -> LbIx -> LbIx -> LbIx -> [f]
- onWord :: Ord f => Model o t f -> Xs o t -> Int -> LbIx -> LogFloat
- onTransition :: Ord f => Model o t f -> Xs o t -> Int -> LbIx -> LbIx -> LbIx -> LogFloat
- lbNum :: Xs o t -> Int -> Int
- lbOn :: Xs o t -> Int -> LbIx -> Maybe t
- lbIxs :: Xs o t -> Int -> [LbIx]
Documentation
A feature index. To every model feature a unique index is assigned.
Feature generation specification.
A conditional random field.
mkModel :: Ord f => FeatGen o t f -> [Xs o t] -> Model o t fSource
FINISH: Dodać ekstrację liczby cech ze zbioru danych, zmienić funkcję mkModel.
A core of the model with no feature generation function.
Unlike the Model
, the core can be serialized.
withCore :: Core f -> FeatGen o t f -> Model o t fSource
Construct model with the given core and feature generation function.
phi :: Ord f => Model o t f -> f -> LogFloatSource
Potential assigned to the feature -- exponential of the corresonding parameter.
presentFeats :: FeatGen o t f -> Xs o t -> Ys t -> [(f, LogFloat)]Source
Features present in the dataset element together with corresponding occurence probabilities.
hiddenFeats :: FeatGen o t f -> Xs o t -> [f]Source
Features hidden in the dataset element.