Class EntityLinkerFactory

Namespace
NOpenNLP.Tools.Entitylinker
Assembly
NOpenNLP.Tools.dll

Generates an IEntityLinker implementation via properties file configuration.

public static class EntityLinkerFactory
Inheritance
EntityLinkerFactory
Inherited Members

Methods

GetLinker(EntityLinkerProperties)

Gets an IEntityLinker implementation named by the linker property.

public static IEntityLinker GetLinker(EntityLinkerProperties properties)

Parameters

properties EntityLinkerProperties

An object that extends EntityLinkerProperties. This object will be passed into the implemented Init(EntityLinkerProperties) method, so it is an appropriate place to put additional resources. In the properties file, the linker implementation must be provided using "linker" as the properties key, and the full class name as value.

Returns

IEntityLinker

An IEntityLinker impl.

Exceptions

IOException

Thrown if the linker cannot be initialized.

GetLinker(string, EntityLinkerProperties)

Gets an IEntityLinker implementation for the given entity type.

public static IEntityLinker GetLinker(string entityType, EntityLinkerProperties properties)

Parameters

entityType string

The type of entity being linked to. This value is used to retrieve the implementation of the entitylinker from the entitylinker properties file.

properties EntityLinkerProperties

An object that extends EntityLinkerProperties. This object will be passed into the implemented Init(EntityLinkerProperties) method, so it is an appropriate place to put additional resources.

Returns

IEntityLinker

An IEntityLinker impl.

Exceptions

IOException

Thrown if the linker cannot be initialized.