__init__
- Collocator.__init__(threads=None, name=None)[source]
Initialize a collocator object that can find collocations
- Parameters:
threads – Finding collocations can be parallelized in threads. Give here the maximum number of threads that you want to use. Which number of threads is the best, may be machine-dependent. So this is a parameter that you can use to fine-tune the performance. Note: Not yet implemented due to GIL usage of sklearn BallTree.
name – The name of this collocator, will be used in log statements.