PenProfile 2.x

com.livescribe.icr
Class LKDynamicResource

java.lang.Object
  extended by com.livescribe.icr.Resource
      extended by com.livescribe.icr.LKDynamicResource

public abstract class LKDynamicResource
extends Resource

A Linguistic Knowledge resource is used to enable the recognition of a set of words. This is a dynamic version of they type of resource, where words can be added or removed at runtime. This resource needs to be added to the ICR context to be used. It is recommended that dynamic lexicons be limited to about 1000 entries for optimal performance.

Note: "Words" can include spaces, for example "United States" can be one word.

Since:
0.3
See Also:
ICRContext.addResource(Resource), ICRContext.addResourceSet(Resource[])

Constructor Summary
protected LKDynamicResource()
          Default constructor.
 
Method Summary
abstract  boolean addWord(String word)
          Add the specified string to this dynamic resource.
abstract  boolean removeWord(String word)
          Remove the specified String from the DynamicResource.
 
Methods inherited from class com.livescribe.icr.Resource
getURI
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LKDynamicResource

protected LKDynamicResource()
Default constructor.

Method Detail

addWord

public abstract boolean addWord(String word)
Add the specified string to this dynamic resource.

Parameters:
word - add this string to the resource
Returns:
false if the word has already been added and true otherwise.
Since:
0.3

removeWord

public abstract boolean removeWord(String word)
Remove the specified String from the DynamicResource.

Parameters:
word - The String to remove from the DynamicResource.
Returns:
false if the word did not exist and true otherwise.
Since:
0.3

PenProfile 2.x

Copyright © 2010 Livescribe Inc. All Rights Reserved.
Confidential and subject to NDA.