mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 09:57:26 +03:00 
			
		
		
		
	small fixes
This commit is contained in:
		
							parent
							
								
									e47ea88aeb
								
							
						
					
					
						commit
						56ba691ecd
					
				| 
						 | 
					@ -103,10 +103,10 @@ your application, you would normally use a shortcut for this and instantiate the
 | 
				
			||||||
component using its string name and [`nlp.add_pipe`](/api/language#create_pipe).
 | 
					component using its string name and [`nlp.add_pipe`](/api/language#create_pipe).
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| Name                | Description                                                                                                                                                                                                                                                                             |
 | 
					| Name                | Description                                                                                                                                                                                                                                                                             |
 | 
				
			||||||
| ------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
 | 
					| ------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
 | 
				
			||||||
| `vocab`             | The shared vocabulary. ~~Vocab~~                                                                                                                                                                                                                                                        |
 | 
					| `vocab`             | The shared vocabulary. ~~Vocab~~                                                                                                                                                                                                                                                        |
 | 
				
			||||||
| `model`             | The Thinc [`Model`](https://thinc.ai/docs/api-model) wrapping the transformer. Usually you will want to use the [TransformerModel](/api/architectures#TransformerModel) layer for this. ~~Model[List[Doc], FullTransformerBatch]~~                                                      |
 | 
					| `model`             | The Thinc [`Model`](https://thinc.ai/docs/api-model) wrapping the transformer. Usually you will want to use the [TransformerModel](/api/architectures#TransformerModel) layer for this. ~~Model[List[Doc], FullTransformerBatch]~~                                                      |
 | 
				
			||||||
| `annotation_setter` | Function that takes a batch of `Doc` objects and transformer outputs and stores the annotations on the `Doc`. By default, the function `trfdata_setter` sets the `Doc._.trf_data` attribute. ~~Callable[[List[Doc], FullTransformerBatch], None]~~ |
 | 
					| `annotation_setter` | Function that takes a batch of `Doc` objects and transformer outputs and stores the annotations on the `Doc`. The `Doc._.trf_data` attribute is set prior to calling the callback. By default, no additional annotations are set. ~~Callable[[List[Doc], FullTransformerBatch], None]~~ |
 | 
				
			||||||
| _keyword-only_      |                                                                                                                                                                                                                                                                                         |
 | 
					| _keyword-only_      |                                                                                                                                                                                                                                                                                         |
 | 
				
			||||||
| `name`              | String name of the component instance. Used to add entries to the `losses` during training. ~~str~~                                                                                                                                                                                     |
 | 
					| `name`              | String name of the component instance. Used to add entries to the `losses` during training. ~~str~~                                                                                                                                                                                     |
 | 
				
			||||||
| `max_batch_items`   | Maximum size of a padded batch. Defaults to `128*32`. ~~int~~                                                                                                                                                                                                                           |
 | 
					| `max_batch_items`   | Maximum size of a padded batch. Defaults to `128*32`. ~~int~~                                                                                                                                                                                                                           |
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user