Examples of align()


Examples of com.brsanthu.dataexporter.model.Column.align()

           
            if (callback != null) {
                callback.beforeCell(cellDetails);
            }

            List<String> cells = column.align(cellDetails, column.format(cellDetails));
            for (int j = 0; j < maxRowHeight; j++) {
                rowLines.get(j).add(cells.get(j));
            }

            if (callback != null) {
View Full Code Here

Examples of com.thinkgem.jeesite.common.utils.excel.annotation.ExcelField.align()

        }catch(Exception ex) {
          // Failure to ignore
          log.info(ex.toString());
          val = "";
        }
        this.addCell(row, colunm++, val, ef.align(), ef.fieldType());
        sb.append(val + ", ");
      }
      log.debug("Write success: ["+row.getRowNum()+"] "+sb.toString());
    }
    return this;
View Full Code Here

Examples of edu.cmu.sphinx.alignment.LongTextAligner.align()

                List<String> words = new ArrayList<String>();
                for (WordResult wr : hypothesis) {
                    words.add(wr.getWord().getSpelling());
                }
                int[] alignment = aligner.align(words, range);

                List<WordResult> results = hypothesis;

                logger.info("Decoding result is " + results);
View Full Code Here

Examples of edu.cmu.sphinx.alignment.LongTextAligner.align()

       
        LongTextAligner textAligner =
                new LongTextAligner(stringResults, 2);
        List<String> words = aligner.getWordExpander().expand(transcript);

        int[] aid = textAligner.align(words);
       
        int lastId = -1;
        for (int i = 0; i < aid.length; ++i) {
            if (aid[i] == -1) {
                System.out.format("- %s\n", words.get(i));
View Full Code Here

Examples of edu.cmu.sphinx.api.SpeechAligner.align()

     * @param args acoustic model, dictionary, audio file, text
     */
    public static void main(String args[]) throws Exception {
        File file = new File(args[2]);
        SpeechAligner aligner = new SpeechAligner(args[0], args[1], null);
        splitStream(file, aligner.align(file.toURI().toURL(), args[3]));
    }

    private static void splitStream(File inFile, List<WordResult> results)
        throws UnsupportedAudioFileException, IOException
    {
View Full Code Here

Examples of edu.cmu.sphinx.api.SpeechAligner.align()

        String dictionaryPath = (args.length > 3) ? args[3] : DICTIONARY_PATH;
        String g2pPath = (args.length > 4) ? args[4] : null;
        SpeechAligner aligner =
                new SpeechAligner(acousticModelPath, dictionaryPath, g2pPath);

        List<WordResult> results = aligner.align(audioUrl, transcript);
        List<String> stringResults = new ArrayList<String>();
        for (WordResult wr : results) {
            stringResults.add(wr.getWord().getSpelling());
        }
       
View Full Code Here

Examples of edu.cmu.sphinx.util.NISTAlign.align()

                    ConfidenceResult confidenceResult =
                            confidenceScorer.score(result);
                    bestPath = confidenceResult.getBestHypothesis();
                    hyp = bestPath.getTranscriptionNoFiller();
                }
                aligner.align(ref, hyp);
                if (bestPath != null) {
                    showDetails(bestPath.getTranscription());
                } else {
                    showDetails("");
                }
View Full Code Here

Examples of edu.isi.karma.modeling.alignment.Alignment.align()

          alignment.changeLinkStatus(newLink.getId(),
              LinkStatus.ForcedByUser);
        }
        // Update the alignment
        if(!this.isExecutedInBatch())
          alignment.align();

      } catch (JSONException e) {
        logger.error("JSON Exception occured", e);
      }
    }
View Full Code Here

Examples of edu.isi.karma.modeling.alignment.Alignment.align()

        .getGraph().clone();

    try {
      alignment.deleteForcedInternalNode(nodeId);
      if(!this.isExecutedInBatch())
        alignment.align();
    } catch (JSONException e) {
      logger.error("Error adding Internal Node:" , e);
    }

    return WorksheetUpdateFactory.createSemanticTypesAndSVGAlignmentUpdates(worksheetId, workspace, alignment);
View Full Code Here

Examples of edu.isi.karma.modeling.alignment.Alignment.align()

   
    String alignmentId = AlignmentManager.Instance().constructAlignmentId(workspace.getId(), worksheetId);
    Alignment alignment = initialAlignment;
    alignment.setGraph(initialGraph);
    if(!this.isExecutedInBatch())
      alignment.align();
    AlignmentManager.Instance().addAlignmentToMap(alignmentId, alignment);
    try {
      // Add the visualization update
      workspace.getFactory().replaceWorksheet(worksheetId, worksheetBeforeInvocation);
      c.add(new ReplaceWorksheetUpdate(worksheetId, worksheetBeforeInvocation));
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.