PrepositionalMap.java
Go to the documentation of this file.
00001 package instruction.wordnet;
00002 
00003 import java.util.HashMap;
00004 
00011 public class PrepositionalMap {
00012         
00013         public static final String IN_FRONT_OF = "inFrontOf-Generally";
00014         public static final String IN = "in-UnderspecifiedContainer";
00015         public static final String ON = "on-UnderspecifiedSurface";
00016         public static final String NEXT_TO = "nextToLikeObjects";
00017         public static final String AT = "at-UnderspecifiedLandmark";
00018         public static final String OF = "parts-Underspecified";//"physicalParts";
00019         public static final String TO = "to-UnderspecifiedLocation";
00020         public static final String FROM = "from-UnderspecifiedLocation";
00021         public static final String THROUGH = "through-UnderspecifiedPortal";
00022         public static final String AMONG = "among-Underspecified";
00023         public static final String INSIDE = "inside-UnderspecifiedRegion";
00024         public static final String ABOUT = "about-UnderspecifiedRegion";
00025         public static final String WITHOUT = "without-Underspecified";
00026         public static final String ALONG = "along-UnderspecifiedPath";
00027         public static final String AROUND = "around-UnderspecifiedRegion";
00028         public static final String BY = "by-Underspecified";
00029         public static final String UNDER = "under-UnderspecifiedLocation";
00030         public static final String OVER = "over-UnderspecifiedLocation";
00031         public static final String WITH = "with-UnderspecifiedAgent";
00032         public static final String INTO = "into-UnderspecifiedContainer";
00033         public static final String ACROSS = "across-UnderspecifiedRegion";
00034         public static final String FOR = "for-UnderspecifiedLocation";
00035         public static final String AFTER = "after-Underspecified";
00036         public static final String BEFORE = "before-Underspecified";
00037         public static final String AGAINST = "against-Underspecified";
00038 
00040         private static HashMap<String, String> map = null;
00041 
00048         public static String get( String p ) {
00049 
00050                 if ( map == null )
00051                         init();
00052                 return map.get( p.toLowerCase() );
00053         }
00054 
00058         private static void init() {
00059 
00060                 map = new HashMap<String, String>();
00061 
00062                 map.put( "in front of", IN_FRONT_OF );
00063                 map.put( "in", IN );
00064                 map.put( "into", INTO );
00065                 map.put( "on", ON );
00066                 map.put( "onto", ON );
00067                 map.put( "next to", NEXT_TO );
00068                 map.put( "at", AT );
00069                 map.put( "of", OF );
00070                 map.put( "to", TO );
00071                 map.put( "from", FROM );
00072                 map.put( "through", THROUGH);
00073                 map.put( "among", AMONG );
00074                 map.put( "inside", INSIDE );
00075                 map.put( "about", ABOUT );
00076                 map.put( "without", WITHOUT );
00077                 map.put( "along", ALONG );
00078                 map.put( "around", AROUND );
00079                 map.put( "by", BY );
00080                 map.put( "under", UNDER );
00081                 map.put( "over", OVER );
00082                 map.put( "with", WITH );
00083                 map.put( "across", ACROSS );
00084                 map.put( "for", FOR );
00085                 map.put( "after", AFTER );
00086                 map.put( "before", BEFORE );
00087                 map.put( "against", AGAINST );
00088         }
00089 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends


comp_ehow
Author(s): Moritz Tenorth, Daniel Nyga
autogenerated on Tue Apr 16 2013 00:18:03