Examples of Dictionary


Examples of Dictionary.Dictionary

  //Ce doit �tre une variable d'environnement qui contient tout les dico possibles, et on en passe un en param�tre..
  static final String dictionaryPath = "Francais.txt";

  public static void main(String[] args)
  {
    Dictionary d;
    try
    {
      d = new Dawg();
      d.fromFile(dictionaryPath);

      for (String s : wordToFind)
        System.out.println("The dictionary " + (d.contains(s) ? "contains" : "does not contain") + " the word " + s);
    }
    catch (Exception e)
    {
      // TODO Auto-generated catch block
      e.printStackTrace();
View Full Code Here

Examples of com.alee.managers.language.data.Dictionary

            // Initial language
            language = supportedLanguages.contains ( DEFAULT ) ? DEFAULT : ENGLISH;
            updateLocale ();

            // Default data
            globalDictionary = new Dictionary ();

            // Class aliases
            XmlUtils.processAnnotations ( Dictionary.class );
            XmlUtils.processAnnotations ( LanguageInfo.class );
            XmlUtils.processAnnotations ( Record.class );
View Full Code Here

Examples of com.aonaware.services.webservices.Dictionary

   * @param word word to search.
   */
  @Test(dataProvider="InputData")
  public void test(Object[][] dictionaryAndStrategy, String word)
  {
    Dictionary dictionary = (Dictionary)dictionaryAndStrategy[0][0];
    Strategy strategy = (Strategy)dictionaryAndStrategy[0][1];
   
    ArrayOfDictionaryWord array = dictServiceSoap.matchInDict(dictionary.getId(), word, strategy.getId());
    Assert.assertTrue(checkWordExistenceInTheDictionaryUsingSpecStrategy(dictionary, strategy, word, array),
              "The word " + word + " doesn't exists in " + dictionary.getName() +
              " dictionary. Search was performed using "+ strategy.getDescription() + " strategy.");
  }
View Full Code Here

Examples of com.chenlb.mmseg4j.Dictionary

      System.out.println("\tPerformance <txt path> - is a directory that contain *.txt");
      return;
    }
    String mode = System.getProperty("mode", "complex");
    Seg seg = null;
    Dictionary dic = Dictionary.getInstance();
    if("simple".equals(mode)) {
      seg = new SimpleSeg(dic);
    } else {
      seg = new ComplexSeg(dic);
    }
View Full Code Here

Examples of com.facebook.presto.block.dictionary.Dictionary

        for (int i = 0; i < dictionarySize; i++) {
            dictionary[i] = tupleInfo.extractTupleSlice(sliceInput);
        }

        return new Dictionary(tupleInfo, dictionary);
    }
View Full Code Here

Examples of com.google.gwt.i18n.client.Dictionary

        return loginService;
    }

    protected String getParam(String string) {
        try {
            Dictionary dictionary = Dictionary.getDictionary("Vars");
            return dictionary.get(string + "_" + pageID);
        } catch (Exception e) {
            Log.info("Couldn't find param: " + string);
            return null;
        }
View Full Code Here

Examples of com.ketayao.ketacustom.entity.main.Dictionary

  }
 
  @ModelAttribute("preloadDictionary")
  public Dictionary preload(@RequestParam(value = "id", required = false) Long id) {
    if (id != null) {
      Dictionary dictionary = dictionaryService.get(id);
      return dictionary;
    }
    return null;
  }
View Full Code Here

Examples of com.lgx8.management.entities.Dictionary

      String zipcode = decodeParameter(request,"zipcode");
      String tel = decodeParameter(request,"tel");
      String name = decodeParameter(request,"name");
      String syn = decodeParameter(request,"syn");
     
      Dictionary d0 = dictionaryDao.findByKindAndCode("province", province);
      Dictionary d1 = dictionaryDao.findByKindAndCode("city", city);
      Dictionary d2 = dictionaryDao.findByKindAndCode("county", region);
     
     
      addr.setCity(d1 != null ? d1.getDETAIL():"");
      addr.setAddress(address);
      addr.setIsdefault(Integer.parseInt(isdefault.trim()));
      addr.setName(name);
      addr.setProvince(d0 != null ? d0.getDETAIL():"");
      addr.setRegion(d2 != null ? d2.getDETAIL():"");
      addr.setTel(tel);
      addr.setZipcode(zipcode);
     
      if(addFlag){
        User user = userCardService.findUserById(RunTimeUser.getRunTimeUser(request).getId());
View Full Code Here

Examples of com.mysql.clusterj.core.store.Dictionary

            Db db = null;
            synchronized(this) {
                checkConnection(clusterConnection);
                db = clusterConnection.createDb(CLUSTER_DATABASE, CLUSTER_MAX_TRANSACTIONS);
            }
            Dictionary dictionary = db.getDictionary();
            return new SessionImpl(this, properties, db, dictionary);
        } catch (ClusterJException ex) {
            throw ex;
        } catch (Exception ex) {
            throw new ClusterJFatalException(
View Full Code Here

Examples of com.mysql.ndbjtie.ndbapi.NdbDictionary.Dictionary

    }

    protected void initTable() {
        if(table_t0 == null) {

            final Dictionary dict = ndb.getDictionary();

            if ((table_t0 = dict.getTable("mytable")) == null)
                throw new RuntimeException(TwsUtils.toStr(dict.getNdbError()));
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.