• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java ArtifactSerializer类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中opennlp.tools.util.model.ArtifactSerializer的典型用法代码示例。如果您正苦于以下问题:Java ArtifactSerializer类的具体用法?Java ArtifactSerializer怎么用?Java ArtifactSerializer使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

ArtifactSerializer类属于opennlp.tools.util.model包,在下文中一共展示了ArtifactSerializer类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: createArtifactSerializersMap

点赞 2

import opennlp.tools.util.model.ArtifactSerializer; //导入依赖的package包/类
@Override
@SuppressWarnings("rawtypes")
public Map<String, ArtifactSerializer> createArtifactSerializersMap() {
  Map<String, ArtifactSerializer> serializers = super
      .createArtifactSerializersMap();

  serializers.put(MORFOLOGIK_POSDICT_SUF, new ByteArraySerializer());
  serializers.put(MORFOLOGIK_DICT_INFO_SUF, new ByteArraySerializer());

  return serializers;
}
 

开发者ID:apache,
项目名称:opennlp-addons,
代码行数:12,
代码来源:MorfologikPOSTaggerFactory.java

示例2: createArtifactSerializers

点赞 2

import opennlp.tools.util.model.ArtifactSerializer; //导入依赖的package包/类
@SuppressWarnings("rawtypes")
@Override
protected void createArtifactSerializers(
    Map<String,ArtifactSerializer> serializers) {
  super.createArtifactSerializers(serializers);
  PooledGenericModelSerializer.register(serializers);
}
 

开发者ID:TekstoSense,
项目名称:opennlp-enhancer,
代码行数:8,
代码来源:PooledTokenNameFinderModel.java

示例3: createArtifactSerializersMap

点赞 2

import opennlp.tools.util.model.ArtifactSerializer; //导入依赖的package包/类
@Override
@SuppressWarnings("rawtypes")
public Map<String, ArtifactSerializer> createArtifactSerializersMap() {
    Map<String, ArtifactSerializer> artSerMap = super.createArtifactSerializersMap();
    artSerMap.put("extractors", new FeatureExtractorsSerializer());
    // artSerMap.put("dict", new MorphologyDictionarySerializer());
    return artSerMap;
}
 

开发者ID:textocat,
项目名称:textokit-core,
代码行数:9,
代码来源:POSTaggerFactory.java

示例4: createArtifactSerializers

点赞 2

import opennlp.tools.util.model.ArtifactSerializer; //导入依赖的package包/类
@SuppressWarnings("rawtypes")
@Override
protected void createArtifactSerializers(
    Map<String,ArtifactSerializer> serializers) {
  super.createArtifactSerializers(serializers);
  
  PooledGenericModelSerializer.register(serializers);
}
 

开发者ID:spinscale,
项目名称:elasticsearch-opennlp-plugin,
代码行数:9,
代码来源:PooledTokenNameFinderModel.java

示例5: register

点赞 2

import opennlp.tools.util.model.ArtifactSerializer; //导入依赖的package包/类
@SuppressWarnings("rawtypes")
public static void register(Map<String, ArtifactSerializer> factories) {
  factories.put("model", new PooledGenericModelSerializer());
 }
 

开发者ID:spinscale,
项目名称:elasticsearch-opennlp-plugin,
代码行数:5,
代码来源:PooledGenericModelSerializer.java

示例6: register

点赞 1

import opennlp.tools.util.model.ArtifactSerializer; //导入依赖的package包/类
/**
 * Register.
 *
 * @param factories the factories
 */
@SuppressWarnings("rawtypes")
public static void register(Map<String, ArtifactSerializer> factories) {
	factories.put("model", new PooledGenericModelSerializer());
}
 

开发者ID:TekstoSense,
项目名称:opennlp-enhancer,
代码行数:10,
代码来源:PooledGenericModelSerializer.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)