Examples of map()


Examples of edu.stanford.nlp.international.arabic.pipeline.DefaultLexicalMapper.map()

        // Tokenize with the mapper
        StringBuilder sb = new StringBuilder();
        String[] toks = line.split("\\s+");
        for (String tok : toks) {
          String mappedTok = lexMapper.map(null, tok);
          sb.append(mappedTok).append(" ");
        }
        List<String> mappedToks = Arrays.asList(sb.toString().trim().split("\\s+"));

        // Evaluate the output
View Full Code Here

Examples of edu.stanford.nlp.trees.treebank.Mapper.map()

        // Tokenize with the mapper
        StringBuilder sb = new StringBuilder();
        String[] toks = line.split("\\s+");
        for (String tok : toks) {
          String mappedTok = lexMapper.map(null, tok);
          sb.append(mappedTok).append(" ");
        }
        List<String> mappedToks = Arrays.asList(sb.toString().trim().split("\\s+"));

        // Evaluate the output
View Full Code Here

Examples of etc.aloe.processes.LabelMapping.map()

        //Predict the labels
        Predictions predictions = this.model.getPredictions(examples);

        //Map back onto messages
        LabelMapping mapping = getMappingImpl();
        mapping.map(predictions, segmentSet);

        //Evaluate the model on labeled examples
        this.evaluationReport = new EvaluationReport("Unlabeled Data", falsePositiveCost, falseNegativeCost);
        this.evaluationReport.addPredictions(predictions);
    }
View Full Code Here

Examples of fork.lib.bio.anno.id.CrossAnno.map()

    CrossAnno cr= new CrossAnno(link,0,1);
    Iterator<GenomicRegion> it = gb.iterator();
    while(it.hasNext()){
        GenomicRegion gr= it.next();
        String n= gr.attr.toString();
        String nn= cr.map(n);
        if(nn==null){
            nn= n;
        }
        gr.attr= new Object[]{n, nn};
    }
View Full Code Here

Examples of iryrwarosh.World.map()

        Tile.DESERT_SAND1, Tile.WATER1 }){
      for (int i = 0; i < 10; i++)
        factory.monster(world, biome);
    }

    for (Point screen : world.map().getDeadEnds()){
      if (world.map().screen(screen.x, screen.y).defaultWall == Tile.WHITE_WALL){
        factory.miniboss(world, screen.x, screen.y);
        world.add(factory.lostArtifact(), screen.x * 19 + 19 / 2, screen.y * 9 + 9 / 2);
      } else {
        switch ((int)(Math.random() * 5)){
 
View Full Code Here

Examples of java.nio.channels.FileChannel.map()

 

  private MappedByteBuffer createMappedBuffer( long file_offset, int length ) throws IOException {
    if ( channel == null ) {
      FileChannel fc = new RandomAccessFile( file, "rw" ).getChannel();
      MappedByteBuffer mbb = fc.map( FileChannel.MapMode.READ_WRITE, file_offset, length );
      if ( access_mode == MODE_READ_ONLY ) fc.close();
      else channel = fc;
      return mbb;
    }
   
View Full Code Here

Examples of javax.datagrid.DataGrid.map()

  }

  @Test
  public void testMapReduce() {
    DataGrid dataGrid = new TransientDataGrid();
    Integer result = dataGrid.map(new Mapper<Integer>() {
      @Override
      public Integer execute() {
        return 1;
      }
    },
View Full Code Here

Examples of jfun.yan.Component.map()

  }

  public Component eval() throws Exception {
    checkMandatory("class", of);
    final Component cc = getMandatory();
    return cc.map(new Map(){
      public Object map(Object obj){
        return Boolean.valueOf(ReflectionUtil.isInstance(of, obj));
      }
    }).cast(boolean.class);
  }
View Full Code Here

Examples of juzu.impl.common.JSON.map()

    //
    JSON config = new JSON();
    config.set("default", ac.defaultController != null ? ac.defaultController.toString() : null);
    config.set("error", ac.errorController != null ? ac.errorController.toString() : null);
    config.set("escapeXML", ac.escapeXML);
    config.map("controllers", controllers);

    //
    return config;
  }
View Full Code Here

Examples of ma.glasnost.orika.MapperFacade.map()

       
        final Result result = new Result();
        result.setBaseRecords(new Record());
        result.setResult(sr);
       
        final Result2 mappedResult = mapper.map(result, Result2.class);
       
        assertEquals(88, mappedResult.getResult().getScore());
    }
   
    public static class Record {
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.