Examples of addChunk()


Examples of edu.umd.hooka.corpora.ParallelChunk.addChunk()

        Chunk ec = new Chunk(e);
        Chunk fc = new Chunk(f);
        String name = label + lc;
        ParallelChunk p = new ParallelChunk();
        p.setName(name);
        p.addChunk(de, fc);
        p.addChunk(en, ec);
        if (a != null) { 
          ReferenceAlignment ra = new ReferenceAlignment(ec.getLength(), fc.getLength());
          try {
            ra.addAlignmentPointsPharaoh(a);
View Full Code Here

Examples of edu.umd.hooka.corpora.ParallelChunk.addChunk()

        Chunk fc = new Chunk(f);
        String name = label + lc;
        ParallelChunk p = new ParallelChunk();
        p.setName(name);
        p.addChunk(de, fc);
        p.addChunk(en, ec);
        if (a != null) { 
          ReferenceAlignment ra = new ReferenceAlignment(ec.getLength(), fc.getLength());
          try {
            ra.addAlignmentPointsPharaoh(a);
            p.addReferenceAlignment(ende, ra);
View Full Code Here

Examples of net.alteiar.newversion.shared.chunk.ChunkObjectReceived.addChunk()

      received = new ChunkObjectReceived();
      receivingObject.put(obj.getId(), received);
    }

    byte[] bytes = obj.getBytes();
    received.addChunk(bytes);

    return new MessageReadyToReceive(obj.getId());
  }

  private final void messageObjectEndReceived(MessageSplitEnd obj) {
View Full Code Here

Examples of net.sf.jasperreports.engine.design.JRDesignExpression.addChunk()

    JRDesignExpressionChunk chunk = new JRDesignExpressionChunk();
    chunk.setText(columnVO.getDbName());
    chunk.setType(JRDesignExpressionChunk.TYPE_FIELD);
    JRDesignExpression expression = new JRDesignExpression();
    expression.addChunk(chunk);
    expression.setValueClass(columnVO.getFieldClass());
    JRDesignTextField textField = new JRDesignTextField();
    textField.setWidth(columnVO.getWidth());
    textField.setHeight(bDetalle.getHeight());
    textField.setX(px);
View Full Code Here

Examples of org.apache.stanbol.enhancer.nlp.model.AnalysedText.addChunk()

                token.addAnnotation(POS_ANNOTATION, Value.value(posTag));
                //NER
                NerTag nerTag = NER_TAG_SET.getTag(posAttr.getPartOfSpeech());
                if(ner != null && (nerTag == null || !ner.tag.getType().equals(nerTag.getType()))){
                    //write NER annotation
                    Chunk chunk = at.addChunk(ner.start, ner.end);
                    chunk.addAnnotation(NlpAnnotations.NER_ANNOTATION, Value.value(ner.tag));
                    //NOTE that the fise:TextAnnotation are written later based on the nerList
                    //clean up
                    ner = null;
                }
View Full Code Here

Examples of org.apache.stanbol.enhancer.nlp.model.AnalysedText.addChunk()

                    boolean start = chunkTags[i].charAt(0) == 'B';
                    boolean end = tag != null && (start || chunkTags[i].charAt(0) == 'O');
                    if(end){ //add the current phrase
                        //add at AnalysedText level, because offsets are absolute
                        //NOTE we are already at the next token when we detect the end
                        Chunk chunk = at.addChunk(
                            tokenList.get(i-chunkTokenCount).getStart(),
                            tokenList.get(i-1).getEnd());
                        chunk.addAnnotation(PHRASE_ANNOTATION,
                            new Value<PhraseTag>(tag,
                                    chunkProps/(double)chunkTokenCount));
View Full Code Here

Examples of org.apache.stanbol.enhancer.nlp.model.AnalysedText.addChunk()

                        chunkProps = chunkProps + chunkProb[i];
                        chunkTokenCount++;
                    }
                }
                if(tag != null){
                    Chunk chunk = at.addChunk(
                        tokenList.get(i-chunkTokenCount).getStart(),
                        tokenList.get(i-1).getEnd());
                    chunk.addAnnotation(PHRASE_ANNOTATION,
                        new Value<PhraseTag>(tag,
                                chunkProps/(double)chunkTokenCount));
View Full Code Here

Examples of org.apache.stanbol.enhancer.nlp.model.AnalysedText.addChunk()

                    boolean start = chunkTags[i].charAt(0) == 'B';
                    boolean end = tag != null && (start || chunkTags[i].charAt(0) == 'O');
                    if(end){ //add the current phrase
                        //add at AnalysedText level, because offsets are absolute
                        //NOTE we are already at the next token when we detect the end
                        Chunk chunk = at.addChunk(
                            tokenList.get(i-chunkTokenCount).getStart(),
                            tokenList.get(i-1).getEnd());
                        chunk.addAnnotation(PHRASE_ANNOTATION,
                            new Value<PhraseTag>(tag,
                                    chunkProps/(double)chunkTokenCount));
View Full Code Here

Examples of org.apache.stanbol.enhancer.nlp.model.AnalysedText.addChunk()

                        chunkProps = chunkProps + chunkProb[i];
                        chunkTokenCount++;
                    }
                }
                if(tag != null){
                    Chunk chunk = at.addChunk(
                        tokenList.get(i-chunkTokenCount).getStart(),
                        tokenList.get(i-1).getEnd());
                    chunk.addAnnotation(PHRASE_ANNOTATION,
                        new Value<PhraseTag>(tag,
                                chunkProps/(double)chunkTokenCount));
View Full Code Here

Examples of org.structr.cloud.message.FileNodeDataContainer.addChunk()

      logger.log(Level.WARNING, "Received file chunk for ID {0} without file, this should not happen!", chunk.getContainerId());

    } else {

      container.addChunk(chunk);
    }
  }

  public List<SyncableInfo> listSyncables(final Set<Class<Syncable>> types) throws FrameworkException {
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.