Package gov.nih.nlm.nls.lvg.Api

Examples of gov.nih.nlm.nls.lvg.Api.LvgCmdApi


          // See http://lexsrv3.nlm.nih.gov/SPECIALIST/Projects/ctakes-lvg/2008/docs/designDoc/UDF/flow/index.html       
          // Lower-case the terms and then uninflect
          // f = using flow components (in this order)
          //     l = lower case
          //     b = uninflect a term
          lvg = new LvgCmdApi("-f:l:b", configFileName);
          // Generate inflectional variants and get categories as strings rather than bit vectors
          // f = using flow components (only one (i) used here)
          //     i = generate inflectional variants
          // -SC = Show category names (returns the categories as strings rather than bit vectors)
          lvgLexItem = new LvgLexItemApi("-f:i -SC", configFileName);
View Full Code Here


      File f = new File(uri.getPath());
      String configDir = f.getParentFile().getAbsolutePath();
      String lvgDir = configDir.substring(0, configDir.length()
          - "data/config".length());
      System.setProperty("user.dir", lvgDir);
      lvgCmd = new LvgCmdApi("-f:l:b", f.getAbsolutePath());
    } catch (Exception e) {
      log.warn(
          "could not initialize lvg - will not create a stemmed dictionary.",
          e);
    }
View Full Code Here

          // See http://lexsrv3.nlm.nih.gov/SPECIALIST/Projects/ctakes-lvg/2008/docs/designDoc/UDF/flow/index.html       
          // Lower-case the terms and then uninflect
          // f = using flow components (in this order)
          //     l = lower case
          //     b = uninflect a term
          lvg = new LvgCmdApi("-f:l:b", configFileName);
          // Generate inflectional variants and get categories as strings rather than bit vectors
          // f = using flow components (only one (i) used here)
          //     i = generate inflectional variants
          // -SC = Show category names (returns the categories as strings rather than bit vectors)
          lvgLexItem = new LvgLexItemApi("-f:i -SC", configFileName);
View Full Code Here

TOP

Related Classes of gov.nih.nlm.nls.lvg.Api.LvgCmdApi

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.