![]() |
sensitivity.io for iOS & macOS
1.1.4
|
#import <ClassifierExecutor.h>
Instance Methods | |
(instancetype _Nullable) | - initWithError: |
(ThreadPool *_Nullable) | - threadPoolWithError: |
(ClassificationFuture *_Nullable) | - classifyString:withPriotiry:withError: |
(ClassificationFuture *_Nullable) | - classifyData:fileName:withPriotiry:withError: |
(ClassificationFuture *_Nullable) | - classifyFileAtPath:withPriotiry:withError: |
ClassifierExecutor class provides the means to classify multiple texts, data and files simultaneously. Before performing any classify action the classification module needs to have its resources initialized, the license needs to be loaded, the classifier executor needs to be registered with a settings loader and the settings need to be loaded.
- (ClassificationFuture* _Nullable) classifyData: | (NSData *_Nonnull) | data | |
fileName: | (NSString *_Nullable) | fileName | |
withPriotiry: | (NSInteger) | priority | |
withError: | (NSError *_Nullable *_Nullable) | error | |
Classifies data.
data | The data that needs to be classified |
fileName | If data is the content of a file, pass file name (otherwise it may be nil or empty string) |
priority | The priority of this classify. High priority classify execute before low priority ones. |
error | The error representing the reason for the failure |
- (ClassificationFuture* _Nullable) classifyFileAtPath: | (NSString *_Nonnull) | filePath | |
withPriotiry: | (NSInteger) | priority | |
withError: | (NSError *_Nullable *_Nullable) | error | |
Classifies file.
filePath | The path of the file that needs to be classified |
priority | The priority of this classify. High priority classify execute before low priority ones. |
error | The error representing the reason for the failure |
- (ClassificationFuture* _Nullable) classifyString: | (NSString *_Nonnull) | text | |
withPriotiry: | (NSInteger) | priority | |
withError: | (NSError *_Nullable *_Nullable) | error | |
Classifies provided text.
text | The text to classify |
priority | The priority of this classify. High priority classify execute before low priority ones. |
error | The error representing the reason for the failure |
- (instancetype _Nullable) initWithError: | (NSError *_Nullable *_Nullable) | error |
Initializes a new object immediately after memory for it has been allocated
error | The error representing the reason for the failure |
- (ThreadPool* _Nullable) threadPoolWithError: | (NSError *_Nullable *_Nullable) | error |
Returns the thread pool of the classifier executor
error | The error representing the reason for the failure |