Permalink
Browse files

Put corpus pool's name as a public string

  • Loading branch information...
1 parent ba754c8 commit 6d5127ceefc0b76a940c60cdcc8596d8a2a6cdb0 @smendes smendes committed Apr 14, 2010
Showing with 5 additions and 1 deletion.
  1. +2 −0 src/BKBayesianClassifier.h
  2. +3 −1 src/BKBayesianClassifier.m
@@ -40,6 +40,8 @@
#import <BayesianKit/BKBayesianDataPool.h>
#import <BayesianKit/BKTokenizing.h>
+extern const NSString *BKCorpusDataPoolName;
+
@interface BKBayesianClassifier : NSObject<NSCoding> {
BKBayesianDataPool *corpus;
@@ -38,6 +38,8 @@
#import <BayesianKit/BKBayesianClassifier.h>
#import <BayesianKit/BKTokenizer.h>
+const NSString *BKCorpusDataPoolName = @"__BKCorpus__";
+
@implementation BKBayesianClassifier
@@ -47,7 +49,7 @@ - (id)init
{
self = [super init];
if (self) {
- corpus = [[BKBayesianDataPool alloc] initWithName:@"__Corpus__"];
+ corpus = [[BKBayesianDataPool alloc] initWithName:BKCorpusDataPoolName];
pools = [[NSMutableDictionary alloc] init];
dirty = YES;

0 comments on commit 6d5127c

Please sign in to comment.