Examples of extract()


Examples of org.fnlp.app.keyword.WordExtract.extract()

   
    StopWords sw= new StopWords("../models/stopwords");
    CWSTagger seg = new CWSTagger("../models/seg.m");
    AbstractExtractor key = new WordExtract(seg,sw);
   
    System.out.println(key.extract("甬温线特别重大铁路交通事故车辆经过近24小时的清理工作,26日深夜已经全部移出事故现场,之前埋下的D301次动车车头被挖出运走", 20, true));
   
    //处理已经分好词的句子
    sw=null;
    key = new WordExtract(seg,sw);
    System.out.println(key.extract("甬温线 特别 重大 铁路交通事故车辆经过近24小时的清理工作,26日深夜已经全部移出事故现场,之前埋下的D301次动车车头被挖出运走", 20));
View Full Code Here

Examples of org.glassfish.common.util.admin.ParameterMapExtractor.extract()

        excludedParams.add(DeploymentProperties.DEPLOYMENT_PLAN);
        excludedParams.add(DeploymentProperties.UPLOAD); // We'll force it to true ourselves.

        final ParameterMap paramMap;
        final ParameterMapExtractor extractor = new ParameterMapExtractor(params);
        paramMap = extractor.extract(excludedParams);

        prepareGeneratedContent(dc, paramMap);

        // set the path and plan params
View Full Code Here

Examples of org.gridkit.coherence.utils.pof.ReflectionHelper.extract()

    @Test
    public void helperTest() {
       
        ReflectionHelper helper = new ReflectionHelper("count");
       
        Assert.assertEquals(3, helper.extract("ABC"));
       
        @SuppressWarnings("unused")
        class TT {
      String a = "ABC";
            String[] b = {"A", "B", "C"};
View Full Code Here

Examples of org.hibernate.search.engine.DocumentExtractor.extract()

      int size = max - first + 1 < 0 ? 0 : max - first + 1;
      List<EntityInfo> infos = new ArrayList<EntityInfo>( size );
      DocumentExtractor extractor = new DocumentExtractor( searchFactoryImplementor, indexProjection );
      for (int index = first; index <= max; index++) {
        //TODO use indexSearcher.getIndexReader().document( hits.id(index), FieldSelector(indexProjection) );
        infos.add( extractor.extract( hits, index ) );
      }
      Loader loader = getLoader( sess, searchFactoryImplementor );
      return new IteratorImpl( infos, loader );
    }
    catch (IOException e) {
View Full Code Here

Examples of org.hibernate.search.query.engine.impl.DocumentExtractorImpl.extract()

        0, 0, //not used in this case
        targetedClasses
    );
    HashSet<String> titles = new HashSet<String>( 3 );
    for ( int id = 0; id < hits.totalHits; id++ ) {
      Long documentId = (Long) extractor.extract( id ).getId();
      String projectedTitle = (String) extractor.extract( id ).getProjection()[0];
      assertNotNull( projectedTitle );
      titles.add( projectedTitle );
    }
    assertTrue( titles.contains( "Regular goat" ) );
View Full Code Here

Examples of org.hibernate.search.query.engine.spi.DocumentExtractor.extract()

   private AdvancedCache<String, String> cache;

   @Test(expectedExceptions = IllegalArgumentException.class)
   public void testLazyIteratorInitWithInvalidFetchSize() throws IOException {
      DocumentExtractor extractor = mock(DocumentExtractor.class);
      when(extractor.extract(anyInt())).thenAnswer(new Answer<EntityInfo>() {
         @Override
         public EntityInfo answer(InvocationOnMock invocation) throws Throwable {
            int index = (Integer) invocation.getArguments()[0];
            return entityInfos.get(index);
         }
View Full Code Here

Examples of org.hibernate.type.descriptor.ValueExtractor.extract()

  public <X> ValueExtractor<X> getExtractor(JavaTypeDescriptor<X> javaTypeDescriptor) {
    final ValueExtractor realExtractor = delegate.getExtractor( intermediateJavaTypeDescriptor );
    return new BasicExtractor<X>( javaTypeDescriptor, this ) {
      @Override
      protected X doExtract(ResultSet rs, String name, WrapperOptions options) throws SQLException {
        return doConversion( realExtractor.extract( rs, name, options ) );
      }

      @Override
      protected X doExtract(CallableStatement statement, int index, WrapperOptions options) throws SQLException {
        return doConversion( realExtractor.extract( statement, index, options ) );
View Full Code Here

Examples of org.jfrog.gradle.plugin.artifactory.extractor.GradleBuildInfoExtractor.extract()

                deployArtifacts(allDeployDetails, client, patterns);
            }

            //Extract build info and update the clientConf info accordingly (build name, num, etc.)
            GradleBuildInfoExtractor gbie = new GradleBuildInfoExtractor(acc, allDeployDetails);
            Build build = gbie.extract(getProject().getRootProject());
            /**
             * The build-info will be always written to a file in its JSON form.
             */
            exportBuildInfo(build, getExportFile(acc));
            if (isPublishBuildInfo(acc)) {
View Full Code Here

Examples of org.jitterbit.integration.client.project.jitterpack.DescriptorExtractor.extract()

    private void unpackImpl(JitterPack jitterpack, ImportParameters params, File destinationFolder,
                    UnpackCallback callback) {
        logUnpackRequest(jitterpack, destinationFolder);
        try {
            DescriptorExtractor extractor = new DescriptorExtractor(jitterpack.getFile(), params, null);
            JitterPackDescriptor descriptor = extractor.extract();
            DestinationChecker destinationChecker = new DestinationChecker();
            if (!destinationChecker.isLocationOk(params, descriptor, destinationFolder)) {
                logDestinationDenied(destinationFolder);
                callback.unpackingCancelled(null);
                return;
View Full Code Here

Examples of org.jnode.vm.isolate.ObjectLinkMessage.extract()

    public static void main(String[] args) {
        Link cl = Isolate.getLinks()[0];
        CommandRunner cr;
        try {
            ObjectLinkMessage message = (ObjectLinkMessage) cl.receive();
            cr = (CommandRunner) message.extract();
            Map<String, String> env = cr.getEnv();
            int envSize = (env == null) ? 0 : env.size();
            byte[][] binEnv = new byte[envSize * 2][];
            if (envSize > 0) {
                int i = 0;
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.