ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seanfi...@apache.org
Subject svn commit: r1627111 - /ctakes/trunk/ctakes-dictionary-lookup-fast/src/main/java/org/apache/ctakes/dictionary/lookup2/util/DictionarySpec.java
Date Tue, 23 Sep 2014 18:27:46 GMT
Author: seanfinan
Date: Tue Sep 23 18:27:46 2014
New Revision: 1627111

URL: http://svn.apache.org/r1627111
Log:
Extracted interface DictionarySpec and moved implementation to DefaultDictionarySpec


Added:
    ctakes/trunk/ctakes-dictionary-lookup-fast/src/main/java/org/apache/ctakes/dictionary/lookup2/util/DictionarySpec.java

Added: ctakes/trunk/ctakes-dictionary-lookup-fast/src/main/java/org/apache/ctakes/dictionary/lookup2/util/DictionarySpec.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-dictionary-lookup-fast/src/main/java/org/apache/ctakes/dictionary/lookup2/util/DictionarySpec.java?rev=1627111&view=auto
==============================================================================
--- ctakes/trunk/ctakes-dictionary-lookup-fast/src/main/java/org/apache/ctakes/dictionary/lookup2/util/DictionarySpec.java
(added)
+++ ctakes/trunk/ctakes-dictionary-lookup-fast/src/main/java/org/apache/ctakes/dictionary/lookup2/util/DictionarySpec.java
Tue Sep 23 18:27:46 2014
@@ -0,0 +1,60 @@
+package org.apache.ctakes.dictionary.lookup2.util;
+
+import org.apache.ctakes.dictionary.lookup2.concept.ConceptFactory;
+import org.apache.ctakes.dictionary.lookup2.consumer.TermConsumer;
+import org.apache.ctakes.dictionary.lookup2.dictionary.RareWordDictionary;
+
+import java.util.Collection;
+
+/**
+ * Simple Container class that holds a {@link org.apache.ctakes.dictionary.lookup2.dictionary.RareWordDictionary}
+ * collection, a a {@link org.apache.ctakes.dictionary.lookup2.concept.ConceptFactory}
+ * and a {@link org.apache.ctakes.dictionary.lookup2.consumer.TermConsumer}
+ *
+ * @author SPF , chip-nlp
+ * @version %I%
+ * @since 9/19/2014
+ */
+public interface DictionarySpec {
+   /**
+    * @return the available pair names
+    */
+   Collection<String> getPairNames();
+
+   /**
+    * @return the dictionary associated with the given pair name
+    */
+   RareWordDictionary getDictionary( String pairName );
+
+   /**
+    * @return the concept factory for concept creation associated with the given pair name
+    */
+   ConceptFactory getConceptFactory( String pairName );
+
+   /**
+    * @param conceptFactoryName name of a used concept factory
+    * @return all dictionaries associated with the concept factory
+    */
+   Collection<RareWordDictionary> getPairedDictionaries( String conceptFactoryName
);
+
+   /**
+    * @param dictionaryName name of a used dictionary
+    * @return all concept factories associated with the dictionary
+    */
+   Collection<ConceptFactory> getPairedConceptFactories( String dictionaryName );
+
+   /**
+    * @return all known dictionaries
+    */
+   Collection<RareWordDictionary> getDictionaries();
+
+   /**
+    * @return all known concept factories
+    */
+   Collection<ConceptFactory> getConceptFactories();
+
+   /**
+    * @return the consumer to add terms to the Cas
+    */
+   TermConsumer getConsumer();
+}



Mime
View raw message