Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
74 lines (58 sloc) 2.08 KB
//
// NLParser.h
// NL_interface
//
// Created by Alejandro Ciniglio on 11/23/09.
// Copyright 2009 Princeton University. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface NLParser : NSObject {
NSString *raw;
NSString *action;
NSString *trueAction;
NSString *actionRemainder;
NSString *verb;
NSString *directObject;
NSMutableArray *directObjects;
NSString *preposition;
NSString *indirectObject;
NSMutableArray *indirectObjects;
NSMutableDictionary *nounSynonyms;
NSMutableArray *possibleNouns;
NSMutableDictionary *verbSynonyms;
NSArray *possibleActions;
NSMutableArray *possibleVerbs;
NSInteger actionLocation;
int directObjectLocation;
int prepositionLocation;
int indirectObjectLocation;
}
@property (nonatomic, copy) NSString *raw;
@property (nonatomic, copy) NSString *action;
@property (nonatomic, copy) NSString *trueAction;
@property (nonatomic, copy) NSString *actionRemainder;
@property (nonatomic, copy) NSString *verb;
@property (nonatomic, copy) NSString *directObject;
@property (nonatomic, copy) NSString *preposition;
@property (nonatomic, copy) NSString *indirectObject;
@property (nonatomic, retain) NSMutableArray *directObjects;
@property (nonatomic, retain) NSMutableArray *indirectObjects;
@property (nonatomic, retain) NSMutableDictionary *nounSynonyms;
@property (nonatomic, retain) NSMutableArray *possibleNouns;
@property (nonatomic, retain) NSMutableDictionary *verbSynonyms;
@property (nonatomic, retain) NSArray *possibleActions;
@property (nonatomic, retain) NSMutableArray *possibleVerbs;
@property (nonatomic, assign) NSInteger actionLocation;
@property int directObjectLocation;
@property int prepositionLocation;
@property int indirectObjectLocation;
- (NSString *) getMostLikelyActionFromActions:(NSArray *)actions;
- (NSString *) getPrepositionIfAny;
- (void)setObjectsWithIndirect:(BOOL)indirect;
- (NSString *)cleanupWhitespaceIn:(NSString *)str;
- (id) initWithRaw:(NSString *)raw;
- (void)archiveDicts;
- (void)unarchiveDicts;
- (BOOL)nSynonymous:(NSString *)p1 with:(NSString *)p2;
- (BOOL)vSynonymous:(NSString *)p1 with:(NSString *)p2;
@end
Jump to Line
Something went wrong with that request. Please try again.