Modifier and Type | Method and Description |
---|---|
void |
WritableCommunication.writeToFile(Path path,
boolean deleteExisting)
Take in a
Path to an output file, and whether or not to delete the file at that path if it already exists, and output a byte array that represents
a serialized Communication object. |
void |
WritableCommunication.writeToFile(String pathString,
boolean deleteExisting)
Wrapper around
WritableCommunication.writeToFile(Path, boolean) that takes a String instead of a Path . |
Constructor and Description |
---|
PerspectiveCommunication(edu.jhu.hlt.concrete.Communication original,
String perspectiveTool) |
Modifier and Type | Method and Description |
---|---|
edu.jhu.hlt.concrete.Communication |
CallableBytesToCommunication.call() |
byte[] |
CallableCommunicationToBytes.call() |
Modifier and Type | Method and Description |
---|---|
Iterator<edu.jhu.hlt.concrete.Communication> |
StreamingCommunicationConverter.iterator(InputStream is) |
Modifier and Type | Method and Description |
---|---|
static edu.jhu.hlt.concrete.Section |
SingleSectionSegmenter.createSingleSection(edu.jhu.hlt.concrete.Communication c,
String sectionKind) |
edu.jhu.hlt.concrete.Section |
SectionFactory.fromTextSpan(edu.jhu.hlt.concrete.TextSpan ts,
String sectionKind) |
Modifier and Type | Method and Description |
---|---|
edu.jhu.hlt.concrete.Communication |
CompactCommunicationSerializer.fromBytes(byte[] bytes) |
edu.jhu.hlt.concrete.Communication |
CommunicationSerializer.fromBytes(byte[] bytes) |
T |
BoundedThriftSerializer.fromBytes(byte[] bytes) |
T |
BoundedThriftSerializer.fromBytes(T base,
byte[] bytes) |
T |
ThreadSafeThriftSerializer.fromBytes(T object,
byte[] bytez)
Generic method to deserialize a thrift-like object.
|
T |
ThriftSerializer.fromBytes(T base,
byte[] bytes) |
edu.jhu.hlt.concrete.Communication |
CompactCommunicationSerializer.fromInputStream(InputStream is) |
edu.jhu.hlt.concrete.Communication |
CommunicationSerializer.fromInputStream(InputStream is) |
T |
BoundedThriftSerializer.fromInputStream(T base,
InputStream is) |
T |
ThreadSafeThriftSerializer.fromInputStream(T object,
InputStream is)
Same as
ThreadSafeThriftSerializer.fromBytes(TBase, byte[]) , but takes in a InputStream that represents
a serialized TBase object. |
T |
ThriftSerializer.fromInputStream(T base,
InputStream is) |
edu.jhu.hlt.concrete.Communication |
CompactCommunicationSerializer.fromPath(Path path) |
edu.jhu.hlt.concrete.Communication |
CommunicationSerializer.fromPath(Path path) |
T |
BoundedThriftSerializer.fromPath(T base,
Path path) |
T |
ThreadSafeThriftSerializer.fromPath(T object,
Path pathToSerializedFile)
Same as
ThreadSafeThriftSerializer.fromBytes(TBase, byte[]) , but takes in a Path object. |
T |
ThriftSerializer.fromPath(T base,
Path path) |
edu.jhu.hlt.concrete.Communication |
CompactCommunicationSerializer.fromPathString(String pathString) |
edu.jhu.hlt.concrete.Communication |
CommunicationSerializer.fromPathString(String pathString) |
T |
BoundedThriftSerializer.fromPathString(T base,
String pathString) |
T |
ThreadSafeThriftSerializer.fromPathString(T object,
String pathToSerializedFileString)
Same as
ThreadSafeThriftSerializer.fromBytes(TBase, byte[]) , but takes in a String that represents
a path to a serialized TBase object on disk. |
T |
ThriftSerializer.fromPathString(T base,
String pathString) |
Iterator<edu.jhu.hlt.concrete.Communication> |
CommunicationTarSerializer.fromTar(InputStream is) |
Iterator<edu.jhu.hlt.concrete.Communication> |
TarCompactCommunicationSerializer.fromTar(InputStream is) |
edu.jhu.hlt.utilt.AutoCloseableIterator<T> |
BoundedThriftSerializer.fromTar(Path path) |
default Iterator<edu.jhu.hlt.concrete.Communication> |
CommunicationTarGzSerializer.fromTarGz(org.apache.commons.compress.compressors.gzip.GzipCompressorInputStream in)
Default implementation.
|
default Iterator<edu.jhu.hlt.concrete.Communication> |
CommunicationTarGzSerializer.fromTarGz(GZIPInputStream in)
Default implementation.
|
Iterator<edu.jhu.hlt.concrete.Communication> |
TarGzCompactCommunicationSerializer.fromTarGz(InputStream is) |
Iterator<edu.jhu.hlt.concrete.Communication> |
CommunicationTarGzSerializer.fromTarGz(InputStream is) |
edu.jhu.hlt.utilt.AutoCloseableIterator<T> |
BoundedThriftSerializer.fromTarGz(Path path) |
static void |
PrintConcreteTarGzArchive.main(String[] args) |
byte[] |
CompactCommunicationSerializer.toBytes(edu.jhu.hlt.concrete.Communication c) |
byte[] |
CommunicationSerializer.toBytes(edu.jhu.hlt.concrete.Communication c) |
byte[] |
BoundedThriftSerializer.toBytes(T base) |
byte[] |
ThreadSafeThriftSerializer.toBytes(T object)
Generic method to serialize a thrift-like object.
|
byte[] |
ThriftSerializer.toBytes(T base) |
void |
CommunicationTarSerializer.toTar(Collection<edu.jhu.hlt.concrete.Communication> commColl,
Path outPath) |
void |
TarCompactCommunicationSerializer.toTar(Collection<edu.jhu.hlt.concrete.Communication> commColl,
Path outPath) |
default void |
CommunicationTarSerializer.toTar(Collection<edu.jhu.hlt.concrete.Communication> commColl,
String outPathString) |
void |
TarCompactCommunicationSerializer.toTar(Collection<edu.jhu.hlt.concrete.Communication> commColl,
String outPathString) |
void |
TarGzCompactCommunicationSerializer.toTarGz(Collection<edu.jhu.hlt.concrete.Communication> commColl,
Path outPath) |
void |
CommunicationTarGzSerializer.toTarGz(Collection<edu.jhu.hlt.concrete.Communication> commColl,
Path outPath) |
default void |
CommunicationTarGzSerializer.toTarGz(Collection<edu.jhu.hlt.concrete.Communication> commColl,
String outPathString)
Default implementation.
|
Constructor and Description |
---|
BoundedThriftSerializer(Class<T> clazz) |
BoundedThriftSerializer(Class<T> clazz,
org.apache.thrift.protocol.TProtocolFactory factory) |
Modifier and Type | Method and Description |
---|---|
Future<edu.jhu.hlt.concrete.Communication> |
CachedThreadPoolCommunicationSerializer.fromBytes(byte[] bytes) |
Future<edu.jhu.hlt.concrete.Communication> |
AsyncCommunicationSerializer.fromBytes(byte[] bytes) |
Future<byte[]> |
CachedThreadPoolCommunicationSerializer.toBytes(edu.jhu.hlt.concrete.Communication c) |
Future<byte[]> |
AsyncCommunicationSerializer.toBytes(edu.jhu.hlt.concrete.Communication c) |
Constructor and Description |
---|
TarArchiveBoundedThriftIterator(Class<T> clazz,
InputStream is) |
TarGzArchiveBoundedThriftIterator(Class<T> clazz,
InputStream is) |
Modifier and Type | Method and Description |
---|---|
static void |
NamedPipeCommunicationConsumer.main(String[] args) |
static void |
RandomCommunicationStreamProducer.main(String[] args) |
edu.jhu.hlt.concrete.Communication |
NamedPipeCommunicationConsumer.next() |
Modifier and Type | Method and Description |
---|---|
edu.jhu.hlt.concrete.DependencyParse |
TokenizationUtils.getFirstDependencyParseWithName(edu.jhu.hlt.concrete.Tokenization tokenization,
String toolName)
Find the first DependencyParse in the
given
Tokenization whose tool name contains
toolName. |
edu.jhu.hlt.concrete.TokenTagging |
TokenizationUtils.getFirstLemmaTags(edu.jhu.hlt.concrete.Tokenization tokenization)
Find the first LEMMA tagging (TokenTagging.taggingType == LEMMA) in the
given
Tokenization . |
edu.jhu.hlt.concrete.TokenTagging |
TokenizationUtils.getFirstLemmaTagsWithName(edu.jhu.hlt.concrete.Tokenization tokenization,
String toolName)
Find the first LEMMA tagging (TokenTagging.taggingType == LEMMA) in the
given
Tokenization whose tool name contains
toolName. |
edu.jhu.hlt.concrete.TokenTagging |
TokenizationUtils.getFirstNERTags(edu.jhu.hlt.concrete.Tokenization tokenization)
Find the first NER tagging (TokenTagging.taggingType == NER) in the
given
Tokenization . |
edu.jhu.hlt.concrete.TokenTagging |
TokenizationUtils.getFirstNERTagsName(edu.jhu.hlt.concrete.Tokenization tokenization,
String toolName)
Find the first NER tagging (TokenTagging.taggingType == NER) in the
given
Tokenization whose tool name contains
toolName. |
edu.jhu.hlt.concrete.TokenTagging |
TokenizationUtils.getFirstPOSTags(edu.jhu.hlt.concrete.Tokenization tokenization)
Find the first POS tagging (TokenTagging.taggingType == POS) in the
given
Tokenization . |
edu.jhu.hlt.concrete.TokenTagging |
TokenizationUtils.getFirstPOSTagsWithName(edu.jhu.hlt.concrete.Tokenization tokenization,
String toolName)
Find the first POS tagging (TokenTagging.taggingType == POS) in the
given
Tokenization whose tool name contains
toolName. |
static List<edu.jhu.hlt.concrete.Communication> |
CommunicationUtils.loadCommunications(Path pathToFileList) |
static List<edu.jhu.hlt.concrete.Communication> |
CommunicationUtils.loadCommunications(String pathStringToFileList) |
static List<edu.jhu.hlt.concrete.Communication> |
CommunicationUtils.loadCommunicationsFromPaths(List<Path> pathList) |
static List<edu.jhu.hlt.concrete.Communication> |
CommunicationUtils.loadCommunicationsFromPathStrings(List<String> pathStringList) |
Copyright © 2016 Johns Hopkins University HLTCOE. All rights reserved.