| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Text.CoreNLP.Types
Synopsis
- data Dependency = Dependency {
- dep :: Text
- governor :: Int
- governorGloss :: Text
- dependent :: Int
- dependentGloss :: Text
- data Entitymention = Entitymention {
- docTokenBegin :: Int
- docTokenEnd :: Int
- tokenBegin :: Int
- tokenEnd :: Int
- text :: Text
- characterOffsetBegin :: Int
- characterOffsetEnd :: Int
- ner :: Text
- normalizedNER :: Maybe Text
- data Token = Token {}
- data Sentence = Sentence {
- index :: Int
- parse :: Maybe Text
- basicDependencies :: [Dependency]
- enhancedDependencies :: [Dependency]
- enhancedPlusPlusDependencies :: [Dependency]
- entitymentions :: [Entitymention]
- tokens :: [Token]
- data PennPOS
- data Coref = Coref {}
- type CorefsId = Text
- type Corefs = Map CorefsId [Coref]
- data Document = Document {}
- data NamedEntity
- = PERSON
- | LOCATION
- | ORGANIZATION
- | MISC
- | MONEY
- | NUMBER
- | ORDINAL
- | PERCENT
- | DATE
- | TIME
- | DURATION
- | SET
- | URL
- | CITY
- | STATE_OR_PROVINCE
- | COUNTRY
- | NATIONALITY
- | RELIGION
- | TITLE
- | IDEOLOGY
- | CRIMINAL_CHARGE
- | CAUSE_OF_DEATH
- | O
Documentation
data Dependency Source #
Constructors
| Dependency | |
Fields
| |
Instances
data Entitymention Source #
Constructors
| Entitymention | |
Fields
| |
Instances
Constructors
| Token | |
Instances
Constructors
| Sentence | |
Fields
| |
Instances
Constructors
| CC | Coordinating conjunction |
| CD | Cardinal number |
| DT | Determiner |
| EX | Existential *there* |
| FW | Foreign word |
| IN | Preposition or subordinating conjunction |
| JJ | Adjective |
| JJR | Adjective, comparative |
| JJS | Adjective, superlative |
| LS | List item marker |
| MD | Modal |
| NN | Noun, singular or mass |
| NNS | Noun, plural |
| NNP | Proper noun, singular |
| NNPS | Proper noun, plural |
| PDT | Predeterminer |
| POS | Possessive ending |
| PRP | Personal pronoun |
| PRPDollar | Possessive pronoun |
| RB | Adverb |
| RBR | Adverb, comparative |
| RBS | Adverb, superlative |
| RP | Particle |
| SYM | Symbol |
| TO |
|
| UH | Interjection |
| VB | Verb, base form |
| VBD | Verb, past tense |
| VBG | Verb, gerund or present participle |
| VBN | Verb, past participle |
| VBP | Verb, non-3rd person singular present |
| VBZ | Verb, 3rd person singular present |
| WDT | Wh-determiner |
| WP | Wh-pronoun |
| WPDollar | Possessive wh-pronoun |
| WRB | Wh-adverb |
| LRB | "-LRB-"? No idea what's this |
| RRB | "-RRB-"? No idea what's this |
| PosPunctuation | anyOf ".:,''$#$,", sometimes few together |
Instances
Constructors
| Coref | |
Instances
Instances
| FromJSON Document Source # | |
| ToJSON Document Source # | |
Defined in Text.CoreNLP.Types | |
| Generic Document Source # | |
| Show Document Source # | |
| Eq Document Source # | |
| type Rep Document Source # | |
Defined in Text.CoreNLP.Types type Rep Document = D1 ('MetaData "Document" "Text.CoreNLP.Types" "corenlp-types-0.1.0.0-2DumPMRiaEV1NyyJtzdI9D" 'False) (C1 ('MetaCons "Document" 'PrefixI 'True) (S1 ('MetaSel ('Just "docId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "sentences") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Sentence]) :*: S1 ('MetaSel ('Just "corefs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Corefs))))) | |
data NamedEntity Source #
See https://stanfordnlp.github.io/CoreNLP/ner.html
Constructors
| PERSON | |
| LOCATION | |
| ORGANIZATION | |
| MISC | |
| MONEY | |
| NUMBER | |
| ORDINAL | |
| PERCENT | |
| DATE | |
| TIME | |
| DURATION | |
| SET | |
| URL | |
| CITY | |
| STATE_OR_PROVINCE | |
| COUNTRY | |
| NATIONALITY | |
| RELIGION | |
| TITLE | Job title |
| IDEOLOGY | |
| CRIMINAL_CHARGE | |
| CAUSE_OF_DEATH | |
| O | Not a named entity? TODO: check somehow |