Package grammar.input.stdin.Command

Examples of grammar.input.stdin.Command.NounCommand


      for (String word : words) {
        if (!word.equalsIgnoreCase("class"))
          nounTags.add(NounTag.valueOf(Utilities.asConstantName(word)));
      }
     
      return new NounCommand(action, nounTags, regularityCategories);
    }
View Full Code Here


    nounFormsInScope = new HashSet<NounForm>(Arrays.asList(NounForm.getForms(language, null, Multiplicity.SINGULAR)));
  }
 
  public boolean processCommand(Command command, Action action) {
    if (command instanceof NounCommand) {
      NounCommand nounCommand = (NounCommand) command;
      List<NounTag> nounTags = nounCommand.getNounTags();
      Set<NounForm> nounForms = new HashSet<NounForm>();
      for (NounTag nounTag : nounTags) {
        Set<Noun> nouns = nounTag.getMembers();
        for (Noun noun : nouns)
          nounForms = addApplicableForms(noun.getForms(), nounCommand, nounForms);
View Full Code Here

TOP

Related Classes of grammar.input.stdin.Command.NounCommand

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.