Thrift module: curator
Data structures
Struct: Record
Field | Type | Description | Requiredness | Default value |
identifier | string | how to identify this record.
| required | |
rawText | string | The raw text string.
| required | |
labelViews | map<string , base.Labeling > | Label views. Contains all the Labelings.
| required | |
clusterViews | map<string , base.Clustering > | Cluster views. Contains all the Clusterings.
| required | |
parseViews | map<string , base.Forest > | Parse views. Contains all the Forests.
| required | |
views | map<string , base.View > | General views. Contains all the Views.
| required | |
whitespaced | bool | Was this Record created using a ws* method.
| required | |
Record's are the objects that hold all annotations on a text.
identifier
- a unique identifier for this record.
rawText
- the raw text associated with this record.
labelViews
- Label views. Contains all the Labelings for this record.
clusterViews
- Cluster views. Contains all the Clusterings for this record.
parseViews
- Parse views. Contains all the Forests for this record.
views
- Label views. Contains all the Views for this record.
whitespaced
- Was this Record created using a ws* method?
Struct: MultiRecord
Field | Type | Description | Requiredness | Default value |
identifier | string | | required | |
records | list<string > | | required | |
labelViews | map<string , base.Labeling > | | required | |
clusterViews | map<string , base.Clustering > | | required | |
parseViews | map<string , base.Forest > | | required | |
views | map<string , base.View > | | required | |
Services
Service: Curator
Function: Curator.describeAnnotations
map<string
, string
>
describeAnnotations()
Returns a map of view_names to annotation server names. Useful for
inspecting the annotations available via the curator.
Function: Curator.isCacheAvailable
bool
isCacheAvailable()
Is caching enabled on this server?
Function: Curator.wsprovide
Record
wsprovide(string
view_name,
list<string
>
sentences,
bool
forceUpdate)
throws base.ServiceUnavailableException
, base.AnnotationFailedException
Provide annotation of view_name for a given list of strings. Each string
will be tokenized on whitespace and each string should represent one
sentence. forceUpdate forces the annotation to be reprocessed even if it is
available in the cache.