Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data ConllToken cpos fpos ger feats lemma = ConllToken {}
- data SyntaxErrorCoNLL
- tnWord :: forall cpos fpos ger feats lemma. Lens' (ConllToken cpos fpos ger feats lemma) Text
- tnRelProj :: forall cpos fpos ger feats lemma. Lens' (ConllToken cpos fpos ger feats lemma) Text
- tnRel :: forall cpos fpos ger feats lemma ger. Lens (ConllToken cpos fpos ger feats lemma) (ConllToken cpos fpos ger feats lemma) ger ger
- tnPosFG :: forall cpos fpos ger feats lemma fpos. Lens (ConllToken cpos fpos ger feats lemma) (ConllToken cpos fpos ger feats lemma) fpos fpos
- tnPosCG :: forall cpos fpos ger feats lemma cpos. Lens (ConllToken cpos fpos ger feats lemma) (ConllToken cpos fpos ger feats lemma) cpos cpos
- tnLemma :: forall cpos fpos ger feats lemma lemma. Lens (ConllToken cpos fpos ger feats lemma) (ConllToken cpos fpos ger feats lemma) lemma lemma
- tnId :: forall cpos fpos ger feats lemma. Lens' (ConllToken cpos fpos ger feats lemma) Int
- tnHeadProj :: forall cpos fpos ger feats lemma. Lens' (ConllToken cpos fpos ger feats lemma) Text
- tnHead :: forall cpos fpos ger feats lemma. Lens' (ConllToken cpos fpos ger feats lemma) Int
- tnFeats :: forall cpos fpos ger feats lemma feats. Lens (ConllToken cpos fpos ger feats lemma) (ConllToken cpos fpos ger feats lemma) feats feats
- _TheresNoRoot :: Prism' SyntaxErrorCoNLL ()
- _InvalidNumberOfElementsOnLine :: Prism' SyntaxErrorCoNLL (Int, Text)
- _CoulNotParseInteger :: Prism' SyntaxErrorCoNLL (Int, Text)
- _UnkwownRelTag :: Prism' SyntaxErrorCoNLL (Int, Text)
- _UnkonwnPosTag :: Prism' SyntaxErrorCoNLL (Int, Text)
Documentation
data ConllToken cpos fpos ger feats lemma Source #
Basic data type to work witn CoNLL data format
ConllToken | |
|
Instances
Functor (ConllToken cpos fpos ger feats) Source # | |
Defined in Data.ConllToken fmap :: (a -> b) -> ConllToken cpos fpos ger feats a -> ConllToken cpos fpos ger feats b # (<$) :: a -> ConllToken cpos fpos ger feats b -> ConllToken cpos fpos ger feats a # | |
(Eq lemma, Eq cpos, Eq fpos, Eq feats, Eq ger) => Eq (ConllToken cpos fpos ger feats lemma) Source # | |
Defined in Data.ConllToken (==) :: ConllToken cpos fpos ger feats lemma -> ConllToken cpos fpos ger feats lemma -> Bool # (/=) :: ConllToken cpos fpos ger feats lemma -> ConllToken cpos fpos ger feats lemma -> Bool # | |
(Ord lemma, Ord cpos, Ord fpos, Ord feats, Ord ger) => Ord (ConllToken cpos fpos ger feats lemma) Source # | |
Defined in Data.ConllToken compare :: ConllToken cpos fpos ger feats lemma -> ConllToken cpos fpos ger feats lemma -> Ordering # (<) :: ConllToken cpos fpos ger feats lemma -> ConllToken cpos fpos ger feats lemma -> Bool # (<=) :: ConllToken cpos fpos ger feats lemma -> ConllToken cpos fpos ger feats lemma -> Bool # (>) :: ConllToken cpos fpos ger feats lemma -> ConllToken cpos fpos ger feats lemma -> Bool # (>=) :: ConllToken cpos fpos ger feats lemma -> ConllToken cpos fpos ger feats lemma -> Bool # max :: ConllToken cpos fpos ger feats lemma -> ConllToken cpos fpos ger feats lemma -> ConllToken cpos fpos ger feats lemma # min :: ConllToken cpos fpos ger feats lemma -> ConllToken cpos fpos ger feats lemma -> ConllToken cpos fpos ger feats lemma # | |
(Read lemma, Read cpos, Read fpos, Read feats, Read ger) => Read (ConllToken cpos fpos ger feats lemma) Source # | |
Defined in Data.ConllToken readsPrec :: Int -> ReadS (ConllToken cpos fpos ger feats lemma) # readList :: ReadS [ConllToken cpos fpos ger feats lemma] # readPrec :: ReadPrec (ConllToken cpos fpos ger feats lemma) # readListPrec :: ReadPrec [ConllToken cpos fpos ger feats lemma] # | |
(Show lemma, Show cpos, Show fpos, Show feats, Show ger) => Show (ConllToken cpos fpos ger feats lemma) Source # | |
Defined in Data.ConllToken showsPrec :: Int -> ConllToken cpos fpos ger feats lemma -> ShowS # show :: ConllToken cpos fpos ger feats lemma -> String # showList :: [ConllToken cpos fpos ger feats lemma] -> ShowS # | |
Generic (ConllToken cpos fpos ger feats lemma) Source # | |
Defined in Data.ConllToken type Rep (ConllToken cpos fpos ger feats lemma) :: Type -> Type # from :: ConllToken cpos fpos ger feats lemma -> Rep (ConllToken cpos fpos ger feats lemma) x # to :: Rep (ConllToken cpos fpos ger feats lemma) x -> ConllToken cpos fpos ger feats lemma # | |
type Rep (ConllToken cpos fpos ger feats lemma) Source # | |
Defined in Data.ConllToken type Rep (ConllToken cpos fpos ger feats lemma) = D1 (MetaData "ConllToken" "Data.ConllToken" "haskell-conll-0.1.0.2-56cdOp3D6saLMUJmPcyMc2" False) (C1 (MetaCons "ConllToken" PrefixI True) (((S1 (MetaSel (Just "_tnId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int) :*: S1 (MetaSel (Just "_tnWord") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)) :*: (S1 (MetaSel (Just "_tnLemma") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 lemma) :*: (S1 (MetaSel (Just "_tnPosCG") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 cpos) :*: S1 (MetaSel (Just "_tnPosFG") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 fpos)))) :*: ((S1 (MetaSel (Just "_tnFeats") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 feats) :*: S1 (MetaSel (Just "_tnHead") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)) :*: (S1 (MetaSel (Just "_tnRel") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ger) :*: (S1 (MetaSel (Just "_tnHeadProj") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Just "_tnRelProj") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))))) |
data SyntaxErrorCoNLL Source #
Describes typical errors when parsing CoNLL from text data Contains next filelds: Reason, LineNumber, Culprit
UnkonwnPosTag Int Text | |
UnkwownRelTag Int Text | |
CoulNotParseInteger Int Text | |
InvalidNumberOfElementsOnLine Int Text | |
TheresNoRoot |
Instances
Eq SyntaxErrorCoNLL Source # | |
Defined in Data.ConllToken (==) :: SyntaxErrorCoNLL -> SyntaxErrorCoNLL -> Bool # (/=) :: SyntaxErrorCoNLL -> SyntaxErrorCoNLL -> Bool # | |
Ord SyntaxErrorCoNLL Source # | |
Defined in Data.ConllToken compare :: SyntaxErrorCoNLL -> SyntaxErrorCoNLL -> Ordering # (<) :: SyntaxErrorCoNLL -> SyntaxErrorCoNLL -> Bool # (<=) :: SyntaxErrorCoNLL -> SyntaxErrorCoNLL -> Bool # (>) :: SyntaxErrorCoNLL -> SyntaxErrorCoNLL -> Bool # (>=) :: SyntaxErrorCoNLL -> SyntaxErrorCoNLL -> Bool # max :: SyntaxErrorCoNLL -> SyntaxErrorCoNLL -> SyntaxErrorCoNLL # min :: SyntaxErrorCoNLL -> SyntaxErrorCoNLL -> SyntaxErrorCoNLL # | |
Read SyntaxErrorCoNLL Source # | |
Defined in Data.ConllToken | |
Show SyntaxErrorCoNLL Source # | |
Defined in Data.ConllToken showsPrec :: Int -> SyntaxErrorCoNLL -> ShowS # show :: SyntaxErrorCoNLL -> String # showList :: [SyntaxErrorCoNLL] -> ShowS # |
tnWord :: forall cpos fpos ger feats lemma. Lens' (ConllToken cpos fpos ger feats lemma) Text Source #
tnRelProj :: forall cpos fpos ger feats lemma. Lens' (ConllToken cpos fpos ger feats lemma) Text Source #
tnRel :: forall cpos fpos ger feats lemma ger. Lens (ConllToken cpos fpos ger feats lemma) (ConllToken cpos fpos ger feats lemma) ger ger Source #
tnPosFG :: forall cpos fpos ger feats lemma fpos. Lens (ConllToken cpos fpos ger feats lemma) (ConllToken cpos fpos ger feats lemma) fpos fpos Source #
tnPosCG :: forall cpos fpos ger feats lemma cpos. Lens (ConllToken cpos fpos ger feats lemma) (ConllToken cpos fpos ger feats lemma) cpos cpos Source #
tnLemma :: forall cpos fpos ger feats lemma lemma. Lens (ConllToken cpos fpos ger feats lemma) (ConllToken cpos fpos ger feats lemma) lemma lemma Source #
tnHeadProj :: forall cpos fpos ger feats lemma. Lens' (ConllToken cpos fpos ger feats lemma) Text Source #
tnHead :: forall cpos fpos ger feats lemma. Lens' (ConllToken cpos fpos ger feats lemma) Int Source #
tnFeats :: forall cpos fpos ger feats lemma feats. Lens (ConllToken cpos fpos ger feats lemma) (ConllToken cpos fpos ger feats lemma) feats feats Source #