@Test(expected = InvalidFormatException.class) public void testCreateWithHierarchy() throws InvalidFormatException { BaseToolFactory.create(Object.class.getCanonicalName(), null); }
@Deprecated public static POSTaggerFactory create(String subclassName, Dictionary ngramDictionary, TagDictionary posDictionary) throws InvalidFormatException { if (subclassName == null) { return new POSTaggerFactory(ngramDictionary, posDictionary); } try { POSTaggerFactory theFactory = ExtensionLoader.instantiateExtension( POSTaggerFactory.class, subclassName); theFactory.init(ngramDictionary, posDictionary); return theFactory; } catch (Exception e) { String msg = "Could not instantiate the " + subclassName + ". The initialization throw an exception."; throw new InvalidFormatException(msg, e); } }
POSTaggerFactory extends BaseToolFactory { @Deprecated public static POSTaggerFactory create(String subclassName, Dictionary ngramDictionary, TagDictionary posDictionary) throws InvalidFormatException { if (subclassName == null) { return new POSTaggerFactory(ngramDictionary, posDictionary); } try { POSTaggerFactory theFactory = ExtensionLoader.instantiateExtension( POSTaggerFactory.class, subclassName); theFactory.init(ngramDictionary, posDictionary); return theFactory; } catch (Exception e) { String msg = "Could not instantiate the " + subclassName + ". The initialization throw an exception."; throw new InvalidFormatException(msg, e); } } }
POSTaggerFactory extends BaseToolFactory { @Deprecated public static POSTaggerFactory create(String subclassName, Dictionary ngramDictionary, TagDictionary posDictionary) throws InvalidFormatException { if (subclassName == null) { return new POSTaggerFactory(ngramDictionary, posDictionary); } try { POSTaggerFactory theFactory = ExtensionLoader.instantiateExtension( POSTaggerFactory.class, subclassName); theFactory.init(ngramDictionary, posDictionary); return theFactory; } catch (Exception e) { String msg = "Could not instantiate the " + subclassName + ". The initialization throw an exception."; throw new InvalidFormatException(msg, e); } } POSTaggerFactory(); @Deprecated  POSTaggerFactory(Dictionary ngramDictionary, TagDictionary posDictionary);  POSTaggerFactory(byte[] featureGeneratorBytes, final Map<String, Object> resources,
                          TagDictionary posDictionary); }
POSTaggerFactory extends BaseToolFactory { @Deprecated public static POSTaggerFactory create(String subclassName, Dictionary ngramDictionary, TagDictionary posDictionary) throws InvalidFormatException { if (subclassName == null) { return new POSTaggerFactory(ngramDictionary, posDictionary); } try { POSTaggerFactory theFactory = ExtensionLoader.instantiateExtension( POSTaggerFactory.class, subclassName); theFactory.init(ngramDictionary, posDictionary); return theFactory; } catch (Exception e) { String msg = "Could not instantiate the " + subclassName + ". The initialization throw an exception."; throw new InvalidFormatException(msg, e); } } POSTaggerFactory(); @Deprecated  POSTaggerFactory(Dictionary ngramDictionary, TagDictionary posDictionary);  POSTaggerFactory(byte[] featureGeneratorBytes, final Map<String, Object> resources,
                          TagDictionary posDictionary); AdaptiveFeatureGenerator createFeatureGenerators(); @Override @SuppressWarnings("rawtypes") Map<String, ArtifactSerializer> createArtifactSerializersMap(); @Override Map<String, Object> createArtifactMap(); TagDictionary createTagDictionary(File dictionary); TagDictionary createTagDictionary(InputStream in); void setTagDictionary(TagDictionary dictionary); TagDictionary getTagDictionary(); @Deprecated Dictionary getDictionary(); @Deprecated void setDictionary(Dictionary ngramDict); POSContextGenerator getPOSContextGenerator(); POSContextGenerator getPOSContextGenerator(int cacheSize); SequenceValidator<String> getSequenceValidator(); @Override void validateArtifactMap(); @Deprecated static POSTaggerFactory create(String subclassName,
      Dictionary ngramDictionary, TagDictionary posDictionary); static POSTaggerFactory create(String subclassName, byte[] featureGeneratorBytes,
                                        Map<String, Object> resources, TagDictionary posDictionary); TagDictionary createEmptyTagDictionary(); }
POSTaggerFactory extends BaseToolFactory { @Deprecated public static POSTaggerFactory create(String subclassName, Dictionary ngramDictionary, TagDictionary posDictionary) throws InvalidFormatException { if (subclassName == null) { return new POSTaggerFactory(ngramDictionary, posDictionary); } try { POSTaggerFactory theFactory = ExtensionLoader.instantiateExtension( POSTaggerFactory.class, subclassName); theFactory.init(ngramDictionary, posDictionary); return theFactory; } catch (Exception e) { String msg = "Could not instantiate the " + subclassName + ". The initialization throw an exception."; throw new InvalidFormatException(msg, e); } } POSTaggerFactory(); @Deprecated  POSTaggerFactory(Dictionary ngramDictionary, TagDictionary posDictionary);  POSTaggerFactory(byte[] featureGeneratorBytes, final Map<String, Object> resources,
                          TagDictionary posDictionary); AdaptiveFeatureGenerator createFeatureGenerators(); @Override @SuppressWarnings("rawtypes") Map<String, ArtifactSerializer> createArtifactSerializersMap(); @Override Map<String, Object> createArtifactMap(); TagDictionary createTagDictionary(File dictionary); TagDictionary createTagDictionary(InputStream in); void setTagDictionary(TagDictionary dictionary); TagDictionary getTagDictionary(); @Deprecated Dictionary getDictionary(); @Deprecated void setDictionary(Dictionary ngramDict); POSContextGenerator getPOSContextGenerator(); POSContextGenerator getPOSContextGenerator(int cacheSize); SequenceValidator<String> getSequenceValidator(); @Override void validateArtifactMap(); @Deprecated static POSTaggerFactory create(String subclassName,
      Dictionary ngramDictionary, TagDictionary posDictionary); static POSTaggerFactory create(String subclassName, byte[] featureGeneratorBytes,
                                        Map<String, Object> resources, TagDictionary posDictionary); TagDictionary createEmptyTagDictionary();  }