Module | Services | Data types | Constants |
---|---|---|---|
learn |
ActiveLearnerServerService
ActiveLearnerClientService |
Annotation
AnnotationTask |
Key | Field | Type | Description | Requiredness | Default value |
---|---|---|---|---|---|
1 | type |
services.AnnotationTaskType
|
Type of annotation task | required | |
2 | language |
string
|
Language of the data for the task | optional | |
3 | unitType |
services.AnnotationUnitType
|
Entire communication or individual sentences | required | |
4 | units |
list<
|
Identifiers for each annotation unit | required |
Annotation task including information for pulling data.
Key | Field | Type | Description | Requiredness | Default value |
---|---|---|---|---|---|
1 | id |
services.AnnotationUnitIdentifier
|
Identifier of the part of the communication being annotated. | required | |
2 | communication |
communication.Communication
|
Communication with the annotation stored in it. The location of the annotation depends on the annotation unit identifier | required |
Annotation on a communication.
services.Service
The active learning server is responsible for sorting a list of communications. Users annotate communications based on the sort. Active learning is an asynchronous process. It is started by the client calling start(). At arbitrary times, the client can call addAnnotations(). When the server is done with a sort of the data, it calls submitSort() on the client. The server can perform additional sorts until stop() is called. The server must be preconfigured with the details of the data source to pull communications.
bool
start(uuid.UUID
sessionId,AnnotationTask
task,services.AsyncContactInfo
contact)
Start an active learning session on these communications
void
addAnnotations(uuid.UUID
sessionId,list<
annotations)Annotation
>
Add annotations from the user to the learning process
services.Service
The active learner client implements a method to accept new sorts of the annotation units
void
submitSort(uuid.UUID
sessionId,list<
unitIds)services.AnnotationUnitIdentifier
>
Submit a new sort of communications to the broker