User guide
90
Label Studio User’s Guide
Set up subunits
Subunit breaks divide your output based on the number of records. You do not
need to have units defined in order to create subunits.
Limit the number of
records per output file
If you want to limit the number of records per output file, set up subunit breaks.
Each file would contain the number of records (or less) that you set.
To do this:
1. Expand the Output folder, and
double-click the Subunits block.
2. Select Divide Units Into Subunits.
3. Enter the number of records that you
want in each output file. For
example, type 5000 if you want each
output file to have 5000 records or
less.
4. Click OK.
End subunits based on
level boundaries
To end your subunit breaks at level boundaries, you first must set up level
boundaries in your definition file and in the Input Options block.
Set up level boundaries You define level boundaries by using the PW.Brk_Lvln field (where n is number
1, 2, or 3). For example, your .def file entry might resemble:
Then, in the Input Options block, choose First from the Level 1 Break Definition
drop-down list. Choose this value based on what your database field identifies
(First, Last, Change, Value, or Ignore).
End on level boundaries If you want to end a subunit break at a boundary level, you must check the
appropriate options. For example, to end a subunit break based on the example
above:
1. Expand the Output folder, and double-click the Subunits block.
2. Select Divide Units into Subunits, and enter the appropriate number.
3. Select End Subunit At Level 1 Boundaries.
4. Click OK.
End on level
boundaries and
Maximum Number of
Pieces per Subunit
Label Studio considers the value of the Maximum Number of Pieces Per Subunit,
when ending subunits at a level boundary. This feature is useful if you want to
split your output into separate files for multiple bindery lines.
For example, rather than having a pallet or a container split between two output
files, you can select End Subunit at Level 2 boundaries (container) and End
PW.Brk_Lvl1 = DB.Pkg_Brk_F
This field is from your database
and identifies when to create a
level based on the first records.