mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 08:26:27 +00:00
Add NSLinguisticTagger skeleton
This commit is contained in:
parent
d102775e2d
commit
48e923168b
1 changed files with 161 additions and 0 deletions
|
@ -23,8 +23,169 @@
|
|||
*/
|
||||
|
||||
#include <Foundation/NSLinguisticTagger.h>
|
||||
#include <Foundation/NSRange.h>
|
||||
#include <Foundation/NSString.h>
|
||||
#include <Foundation/NSDictionary.h>
|
||||
#include <Foundation/NSArray.h>
|
||||
#include <Foundation/NSOrthography.h>
|
||||
|
||||
@implementation NSLinguisticTagger
|
||||
|
||||
- (instancetype) initWithTagSchemes: (NSArray *)tagSchemes
|
||||
options: (NSUInteger)opts
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (NSArray *) tagSchemes
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (NSString *) string
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (void) setString: (NSString *)string
|
||||
{
|
||||
}
|
||||
|
||||
+ (NSArray *) availableTagSchemesForUnit: (NSLinguisticTaggerUnit)unit
|
||||
language: (NSString *)language
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
+ (NSArray *) availableTagSchemesForLanguage: (NSString *)language
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (void) setOrthography: (NSOrthography *)orthography
|
||||
range: (NSRange)range
|
||||
{
|
||||
}
|
||||
|
||||
- (NSOrthography *) orthographyAtIndex: (NSUInteger)charIndex
|
||||
effectiveRange: (NSRangePointer)effectiveRange
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (void) stringEditedInRange: (NSRange)newRange
|
||||
changeInLength: (NSInteger)delta
|
||||
{
|
||||
}
|
||||
|
||||
- (NSRange) tokenRangeAtIndex: (NSUInteger)charIndex
|
||||
unit: (NSLinguisticTaggerUnit)unit
|
||||
{
|
||||
return NSMakeRange(0,0);
|
||||
}
|
||||
|
||||
- (NSRange) sentenceRangeForRange: (NSRange)range
|
||||
{
|
||||
return NSMakeRange(0,0);
|
||||
}
|
||||
|
||||
- (void) enumerateTagsInRange: (NSRange)range
|
||||
unit: (NSLinguisticTaggerUnit)unit
|
||||
scheme: (NSLinguisticTagScheme)scheme
|
||||
options: (NSLinguisticTaggerOptions)options
|
||||
usingBlock: (GSLinguisticTagRangeBoolBlock)block
|
||||
{
|
||||
}
|
||||
|
||||
- (NSLinguisticTag) tagAtIndex: (NSUInteger)charIndex
|
||||
unit: (NSLinguisticTaggerUnit)unit
|
||||
scheme: (NSLinguisticTagScheme)scheme
|
||||
tokenRange: (NSRangePointer)tokenRange
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (NSArray *) tagsInRange: (NSRange)range
|
||||
unit: (NSLinguisticTaggerUnit)unit
|
||||
scheme: (NSLinguisticTagScheme)scheme
|
||||
options: (NSLinguisticTaggerOptions)options
|
||||
tokenRanges: (NSArray **)tokenRanges
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (void) enumerateTagsInRange: (NSRange)range
|
||||
scheme: (NSLinguisticTagScheme)tagScheme
|
||||
options: (NSLinguisticTaggerOptions)opts
|
||||
usingBlock: (GSLinguisticTagRangeRangeBoolBlock)block
|
||||
{
|
||||
}
|
||||
|
||||
- (NSLinguisticTag) tagAtIndex: (NSUInteger)charIndex
|
||||
scheme: (NSLinguisticTagScheme)scheme
|
||||
tokenRange: (NSRangePointer)tokenRange
|
||||
sentenceRange: (NSRangePointer)sentenceRange
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (NSArray *) tagsInRange: (NSRange)range
|
||||
scheme: (NSString *)tagScheme
|
||||
options: (NSLinguisticTaggerOptions)opts
|
||||
tokenRanges: (NSArray **)tokenRanges
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (NSString *) dominantLanguage
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
+ (NSString *) dominantLanguageForString: (NSString *)string
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
+ (NSLinguisticTag) tagForString: (NSString *)string
|
||||
atIndex: (NSUInteger)charIndex
|
||||
unit: (NSLinguisticTaggerUnit)unit
|
||||
scheme: (NSLinguisticTagScheme)scheme
|
||||
orthography: (NSOrthography *)orthography
|
||||
tokenRange: (NSRangePointer)tokenRange
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
+ (NSArray *)tagsForString: (NSString *)string
|
||||
range: (NSRange)range
|
||||
unit: (NSLinguisticTaggerUnit)unit
|
||||
scheme: (NSLinguisticTagScheme)scheme
|
||||
options: (NSLinguisticTaggerOptions)options
|
||||
orthography: (NSOrthography *)orthography
|
||||
tokenRanges: (NSArray **)tokenRanges
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
+ (void) enumerateTagsForString: (NSString *)string
|
||||
range: (NSRange)range
|
||||
unit: (NSLinguisticTaggerUnit)unit
|
||||
scheme: (NSLinguisticTagScheme)scheme
|
||||
options: (NSLinguisticTaggerOptions)options
|
||||
orthography: (NSOrthography *)orthography
|
||||
usingBlock: (GSLinguisticTagRangeBoolBlock)block
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
- (NSArray *) possibleTagsAtIndex: (NSUInteger)charIndex
|
||||
scheme: (NSString *)tagScheme
|
||||
tokenRange: (NSRangePointer)tokenRange
|
||||
sentenceRange: (NSRangePointer)sentenceRange
|
||||
scores: (NSArray **)scores
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
@end
|
||||
|
||||
|
|
Loading…
Reference in a new issue