| Safe Haskell | None |
|---|
NLP.Corpora.Parsing
- readPOS :: Tag t => Text -> TaggedSentence t
- readPOSWith :: Tag t => (Text -> t) -> Text -> TaggedSentence t
- safeInit :: Text -> Text
Documentation
readPOS :: Tag t => Text -> TaggedSentence tSource
Read a POS-tagged corpus out of a Text string of the form: token/tag token/tag...
>>>readPOS "Dear/jj Sirs/nns :/: Let/vb"[("Dear",JJ),("Sirs",NNS),(":",Other ":"),("Let",VB)]
readPOSWith :: Tag t => (Text -> t) -> Text -> TaggedSentence tSource