Examples of PhraseBuilder


Examples of org.apache.ctakes.dictionary.lookup.phrasebuilder.PhraseBuilder

  public LookupAlgorithm getLookupAlgorithm(DictionaryEngine dictEngine)
      throws AnnotatorInitializationException
  {
    // variant support
    String[] variantArr = { CANONICAL_VARIANT_ATTR };
    PhraseBuilder pb = new VariantPhraseBuilderImpl(variantArr, true);

    return new DirectPassThroughImpl(dictEngine, pb);
  }
View Full Code Here

Examples of org.apache.ctakes.dictionary.lookup.phrasebuilder.PhraseBuilder

  public LookupAlgorithm getLookupAlgorithm(DictionaryEngine dictEngine)
      throws AnnotatorInitializationException
  {
    // variant support
    String[] variantArr = { CANONICAL_VARIANT_ATTR };
    PhraseBuilder pb = new VariantPhraseBuilderImpl(variantArr, true);

    String textMetaFields = iv_props.getProperty(TEXT_MFS_PRP_KEY);
    String[] textMetaFieldNameArr;
    if(textMetaFields == null)
      textMetaFieldNameArr = new String[]{};
View Full Code Here

Examples of org.apache.ctakes.dictionary.lookup.phrasebuilder.PhraseBuilder

      } else {
         textMetaFieldNameArr = textMetaFields.split( "\\|" );
      }
      // variant support
      final String[] variantArr = {CANONICAL_VARIANT_ATTR};
      final PhraseBuilder pb = new VariantPhraseBuilderImpl( variantArr, true );
      final int maxPermutationLevel = Integer.parseInt( iv_props.getProperty( MAX_P_LEVEL_PRP_KEY ) );
      return new FirstTokenPermutationImpl( dictEngine, pb, textMetaFieldNameArr, maxPermutationLevel );
   }
View Full Code Here

Examples of org.apache.ctakes.dictionary.lookup.phrasebuilder.PhraseBuilder

      } else {
         textMetaFieldNameArr = textMetaFields.split( "\\|" );
      }
      // variant support
      final String[] variantArr = {CANONICAL_VARIANT_ATTR};
      final PhraseBuilder pb = new VariantPhraseBuilderImpl( variantArr, true );
      final int maxPermutationLevel = Integer.parseInt( iv_props.getProperty( MAX_P_LEVEL_PRP_KEY ) );
      return new FirstTokenPermutationImpl( dictEngine, pb, textMetaFieldNameArr, maxPermutationLevel );
   }
View Full Code Here

Examples of org.apache.ctakes.dictionary.lookup.phrasebuilder.PhraseBuilder

      } else {
         textMetaFieldNameArr = textMetaFields.split( "\\|" );
      }
      // variant support
      final String[] variantArr = {CANONICAL_VARIANT_ATTR};
      final PhraseBuilder pb = new VariantPhraseBuilderImpl( variantArr, true );
      final int maxPermutationLevel = Integer.parseInt( iv_props.getProperty( MAX_P_LEVEL_PRP_KEY ) );
      return new FirstTokenPermutationImpl( dictEngine, pb, textMetaFieldNameArr, maxPermutationLevel );
   }
View Full Code Here

Examples of org.apache.ctakes.dictionary.lookup.phrasebuilder.PhraseBuilder

    */
   @Override
   public LookupAlgorithm getLookupAlgorithm( DictionaryEngine dictEngine ) throws AnnotatorInitializationException {
      // variant support
      final String[] variantArr = {CANONICAL_VARIANT_ATTR};
      final PhraseBuilder pb = new VariantPhraseBuilderImpl( variantArr, true );
      return new DirectPassThroughImpl( dictEngine, pb );
   }
View Full Code Here

Examples of org.apache.stanbol.enhancer.engines.poschunker.PhraseBuilder

        isLangaugeConfigured(this, languageConfiguration, language, true);
        //init the PhraseBuilder
        ChunkFactory chunkFactory = new ChunkFactoryImpl(at, ci.getLock());
        List<PhraseBuilder> phraseBuilders = new ArrayList<PhraseBuilder>(phraseTypeDefinitions.size());
        for(PhraseTypeDefinition ptd : phraseTypeDefinitions){
            phraseBuilders.add(new PhraseBuilder(ptd, chunkFactory, minPosScore));
        }
        Iterator<? extends Section> sentences = at.getSentences();
        if(!sentences.hasNext()){ //no sentences ... iterate over the whole text
            sentences = Collections.singleton(at).iterator();
        }
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.