mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 01:48:04 +03:00 
			
		
		
		
	Disable beam parsing
This commit is contained in:
		
							parent
							
								
									69f21867b5
								
							
						
					
					
						commit
						17874fe491
					
				| 
						 | 
					@ -66,7 +66,7 @@ from ..attrs cimport ID, TAG, DEP, ORTH, NORM, PREFIX, SUFFIX, TAG
 | 
				
			||||||
from . import _beam_utils
 | 
					from . import _beam_utils
 | 
				
			||||||
 | 
					
 | 
				
			||||||
USE_FINE_TUNE = True
 | 
					USE_FINE_TUNE = True
 | 
				
			||||||
BEAM_PARSE = True
 | 
					BEAM_PARSE = False
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def get_templates(*args, **kwargs):
 | 
					def get_templates(*args, **kwargs):
 | 
				
			||||||
    return []
 | 
					    return []
 | 
				
			||||||
| 
						 | 
					@ -336,7 +336,7 @@ cdef class Parser:
 | 
				
			||||||
            return output
 | 
					            return output
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def pipe(self, docs, int batch_size=1000, int n_threads=2,
 | 
					    def pipe(self, docs, int batch_size=1000, int n_threads=2,
 | 
				
			||||||
             beam_width=4, beam_density=0.001):
 | 
					             beam_width=1, beam_density=0.001):
 | 
				
			||||||
        """
 | 
					        """
 | 
				
			||||||
        Process a stream of documents.
 | 
					        Process a stream of documents.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user