arxiv.submission.domain.annotation module

Provides quality-assurance annotations for the submission & moderation system.

class arxiv.submission.domain.annotation.Annotation[source]

Bases: object

class arxiv.submission.domain.annotation.ClassifierResult

Bases: dict

class arxiv.submission.domain.annotation.ClassifierResults(event_id, creator, created, proxy=None, classifier=<Classifiers.CLASSIC: 'classic'>, results=<factory>, annotation_type='ClassifierResults')[source]

Bases: arxiv.submission.domain.annotation.Annotation

Represents suggested classifications from an auto-classifier.

class Classifiers[source]

Bases: enum.Enum

Supported classifiers.

CLASSIC = 'classic'
annotation_type = 'ClassifierResults'
classifier = 'classic'
proxy = None
class arxiv.submission.domain.annotation.Comment(event_id, creator, created, proxy=None, body=<factory>)[source]

Bases: object

A freeform textual annotation.

proxy = None
class arxiv.submission.domain.annotation.Feature(event_id, created, creator, feature_type, proxy=None, feature_value=0, annotation_type='Feature')[source]

Bases: arxiv.submission.domain.annotation.Annotation

Represents features drawn from the content of the submission.

class Type[source]

Bases: enum.Enum

Supported features.

CHARACTER_COUNT = 'chars'
PAGE_COUNT = 'pages'
STOPWORD_COUNT = 'stops'
STOPWORD_PERCENT = '%stop'
WORD_COUNT = 'words'
annotation_type = 'Feature'
feature_value = 0
proxy = None
arxiv.submission.domain.annotation.annotation_factory(**data)[source]
Return type

Annotation