logofirst
logofirst GitHub

PDF Classification

If you want to perform PDF classification, use this template. This template prompts an annotator to rate a PDF on a 10-star scale, then categorize it.

Interactive Template Preview

Labeling Configuration

<View>
    <Header value="Rate this article"/>
    <Rating name="rating" toName="pdf" maxRating="10" icon="star" size="medium" />
     <Choices name="choices" choice="single-radio" toName="pdf" showInline="true">
        <Choice value="Important article"/>
        <Choice value="Yellow press"/>
    </Choices>
    <HyperText name="pdf" value="$pdf" inline="true"/>
</View>

About the labeling configuration

All labeling configurations must be wrapped in View tags.

You can add a header to provide instructions to the annotator:

<Header value="Rate this article"/>

Use the Rating control tag to apply a star rating with a scale of 10 to the pdf:

<Rating name="rating" toName="pdf" maxRating="10" icon="star" size="medium" />

Use the Choices control tag to present classification options to the annotator:

<Choices name="choices" choice="single-radio" toName="pdf" showInline="true">
    <Choice value="Important article"/>
    <Choice value="Yellow press"/>
  </Choices>

Use the HyperText tag to render an inline version of the PDF data:

<HyperText name="pdf" value="$pdf" inline="true"/>

Input data

Label Studio does not support labeling PDF-formatted files directly. Instead, convert your PDF to HTML or an image file. See importing tasks for more.