@@ -75,8 +75,8 @@ class Params(BaseModel):
7575 description = 'if true, the results will be sorted by '
7676 'learning to rank algorithm' )
7777 label_diversity_ratio : Optional [float ] = \
78- Field (0.5 , examples = [0.5 ], ge = 0.0 , le = 1.0 , title = 'collection diversity parameter based on names ' ,
79- description = 'adds penalty to collections with similar names to other collections\n '
78+ Field (0.5 , examples = [0.5 ], ge = 0.0 , le = 1.0 , title = 'collection diversity parameter based on labels ' ,
79+ description = 'adds penalty to collections with similar labels to other collections\n '
8080 'if null, then no penalty will be added' )
8181 max_per_type : Optional [int ] = \
8282 Field (2 , examples = [2 ], ge = 1 , title = 'collection diversity parameter based on collection types' ,
@@ -119,8 +119,8 @@ class RelatedCategoryParams(BaseModel):
119119 max_related_collections : int = Field (6 , ge = 0 , le = 10 ,
120120 title = 'max number of related collections returned. '
121121 'If 0 it effectively turns off any related collection search.' )
122- max_names_per_related_collection : int = Field (10 , ge = 1 , le = 10 ,
123- title = 'max number of names returned in any related collection' )
122+ max_labels_per_related_collection : int = Field (10 , ge = 1 , le = 10 ,
123+ title = 'max number of labels returned in any related collection' )
124124 max_recursive_related_collections : int = Field (3 , ge = 0 , le = 10 ,
125125 title = 'Set to 0 to disable the "recursive related collection search". '
126126 'When set to a value between 1 and 10, '
@@ -131,8 +131,8 @@ class RelatedCategoryParams(BaseModel):
131131 description = 'if true, the results will be sorted by '
132132 'learning to rank algorithm' )
133133 label_diversity_ratio : Optional [float ] = \
134- Field (0.5 , examples = [0.5 ], ge = 0.0 , le = 1.0 , title = 'collection diversity parameter based on names ' ,
135- description = 'adds penalty to collections with similar names to other collections\n '
134+ Field (0.5 , examples = [0.5 ], ge = 0.0 , le = 1.0 , title = 'collection diversity parameter based on labels ' ,
135+ description = 'adds penalty to collections with similar labels to other collections\n '
136136 'if null, then no penalty will be added' )
137137 max_per_type : Optional [int ] = \
138138 Field (2 , examples = [2 ], ge = 1 , title = 'collection diversity parameter based on collection types' ,
@@ -158,10 +158,10 @@ class GroupedLabelRequest(BaseModel):
158158 description = '* cannot contain dots (.)'
159159 '\n * if enclosed in double quotes assuming label is pre-tokenized' )
160160
161- # min_primary_fraction: float = Field(0.1, title='minimal fraction of primary names ',
161+ # min_primary_fraction: float = Field(0.1, title='minimal fraction of primary labels ',
162162 # ge=0.0, le=1.0,
163163 # description='ensures at least `min_suggestions * min_primary_fraction` '
164- # 'primary names will be generated')
164+ # 'primary labels will be generated')
165165 params : GroupedParams = Field (GroupedParams (), title = 'pipeline parameters' ,
166166 description = 'includes all the parameters for all nodes of the pipeline' )
167167
@@ -179,10 +179,10 @@ class LabelRequest(BaseModel):
179179 ge = 1 , le = generator .config .generation .limit )
180180 max_suggestions : int = Field (100 , title = 'maximal number of suggestions to generate' ,
181181 ge = 1 )
182- min_primary_fraction : float = Field (0.1 , title = 'minimal fraction of primary names ' ,
182+ min_primary_fraction : float = Field (0.1 , title = 'minimal fraction of primary labels ' ,
183183 ge = 0.0 , le = 1.0 ,
184184 description = 'ensures at least `min_suggestions * min_primary_fraction` '
185- 'primary names will be generated' )
185+ 'primary labels will be generated' )
186186 params : Optional [Params ] = Field (None , title = 'pipeline parameters' ,
187187 description = 'includes all the parameters for all nodes of the pipeline' )
188188
0 commit comments