|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.languagecomputer.api.sample.EntitySpeedTests
public class EntitySpeedTests
A series of speed tests for named entity recognition. Runs files through the
DocumentService
and EntityService
in various ways:
DocumentService
and
EntityService
locally.
AnnotationMetaService
locally.
DocumentService
and
EntityService
remotely through their web service clients.
AnnotationMetaService
remotely.
DocumentService
and then the EntityService
remotely.
DocumentService
,
EntityService
,
AnnotationMetaService
Constructor Summary | |
---|---|
EntitySpeedTests(File configFile,
String host)
Creates a new EntitySpeedTests with the given local
configFile and remote host. |
Method Summary | |
---|---|
static void |
main(String[] argv)
Command line. |
void |
run(Iterable<File> files)
Runs all the speed tests. |
long |
runLocalAnnotationMetaService(Iterable<File> files)
Runs the AnnotationMetaService locally on the given
File s. |
long |
runLocalDocumentAndEntityServices(Iterable<File> files)
Runs the DocumentService and EntityService locally on the
given File s. |
long |
runRemoteAnnotationMetaService(Iterable<File> files)
Runs the AnnotationMetaService remotely on the given
File s. |
long |
runRemoteDocumentAndEntityServices(Iterable<File> files)
Runs the DocumentService and EntityService remotely on the
given File s. |
long |
runRemoteStreamingDocumentAndEntityServices(Iterable<File> files)
Runs the DocumentService and EntityService remotely on the
given File s. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EntitySpeedTests(File configFile, String host)
EntitySpeedTests
with the given local
configFile and remote host.
Method Detail |
---|
public void run(Iterable<File> files) throws Exception
Exception
public long runLocalDocumentAndEntityServices(Iterable<File> files) throws IOException
DocumentService
and EntityService
locally on the
given File
s.
IOException
public long runLocalAnnotationMetaService(Iterable<File> files) throws IOException
AnnotationMetaService
locally on the given
File
s.
IOException
public long runRemoteDocumentAndEntityServices(Iterable<File> files) throws Exception
DocumentService
and EntityService
remotely on the
given File
s.
Exception
public long runRemoteAnnotationMetaService(Iterable<File> files) throws Exception
AnnotationMetaService
remotely on the given
File
s.
Exception
public long runRemoteStreamingDocumentAndEntityServices(Iterable<File> files) throws Exception
DocumentService
and EntityService
remotely on the
given File
s. The primary difference between this and
runRemoteDocumentAndEntityServices(Iterable)
is that the document
is streamed to the remote DocumentService
instead of using a
URL.
Exception
public static void main(String[] argv) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |