You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ctakes.apache.org by jo...@apache.org on 2024/01/09 19:53:43 UTC
(ctakes) branch main updated: renaming examples to clarify they are PBJ examples
This is an automated email from the ASF dual-hosted git repository.
johnsd pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/ctakes.git
The following commit(s) were added to refs/heads/main by this push:
new acfd14f renaming examples to clarify they are PBJ examples
acfd14f is described below
commit acfd14f3039e0bf028ec79faedae50b3da295364
Author: Dennis Johns <jo...@gmail.com>
AuthorDate: Tue Jan 9 14:53:35 2024 -0500
renaming examples to clarify they are PBJ examples
---
.../pipeline/{SentencePrinter.piper => PbjSentencePrinter.piper} | 7 ++++---
.../examples/pipeline/{WordFinder.piper => PbjWordFinder.piper} | 2 +-
.../pipeline/{WordFinderInOne.piper => PbjWordFinderInOne.piper} | 2 +-
3 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/ctakes-examples/src/user/resources/org/apache/ctakes/examples/pipeline/SentencePrinter.piper b/ctakes-examples/src/user/resources/org/apache/ctakes/examples/pipeline/PbjSentencePrinter.piper
similarity index 85%
rename from ctakes-examples/src/user/resources/org/apache/ctakes/examples/pipeline/SentencePrinter.piper
rename to ctakes-examples/src/user/resources/org/apache/ctakes/examples/pipeline/PbjSentencePrinter.piper
index fd39355..0b20485 100644
--- a/ctakes-examples/src/user/resources/org/apache/ctakes/examples/pipeline/SentencePrinter.piper
+++ b/ctakes-examples/src/user/resources/org/apache/ctakes/examples/pipeline/PbjSentencePrinter.piper
@@ -44,9 +44,9 @@ add CtakesRunner Pipeline="-p PbjThirdStep -o $OutputDirectory -a $ArtemisBroker
// Declare the python pipeline defining the second step in the total pipeline.
set PbjSecondStep=ctakes_pbj.examples.sentence_printer_pipeline
-// The receive and send queue names must be specified.
-// --receive_queue and -rq are equivalent, as are --send_queue and -sq
-add PythonRunner Command="-m $PbjSecondStep --receive_queue JavaToPy --send_queue PyToJava" LogFile=sentence_printer_pipeline.log
+// There is a fixed order to queue specification in python pipelines.
+// The incoming (receiver) queue is named first, the outgoing (sender) queue is named second.
+add PythonRunner Command="-m $PbjSecondStep JavaToPy PyToJava" LogFile=sentence_printer_pipeline.log
//
@@ -58,3 +58,4 @@ load DefaultTokenizerPipeline
// Send CAS to Artemis at the specified queue. Send stop signal when processing has finished.
add PbjJmsSender SendQueue=JavaToPy SendStop=yes
+//add PbjStompSender SendQueue=JavaToPy SendStop=yes
diff --git a/ctakes-examples/src/user/resources/org/apache/ctakes/examples/pipeline/WordFinder.piper b/ctakes-examples/src/user/resources/org/apache/ctakes/examples/pipeline/PbjWordFinder.piper
similarity index 94%
rename from ctakes-examples/src/user/resources/org/apache/ctakes/examples/pipeline/WordFinder.piper
rename to ctakes-examples/src/user/resources/org/apache/ctakes/examples/pipeline/PbjWordFinder.piper
index 4b24c21..b6ec6ac 100644
--- a/ctakes-examples/src/user/resources/org/apache/ctakes/examples/pipeline/WordFinder.piper
+++ b/ctakes-examples/src/user/resources/org/apache/ctakes/examples/pipeline/PbjWordFinder.piper
@@ -46,7 +46,7 @@ set PbjSecondStep=ctakes_pbj.examples.word_finder_pipeline
// There is a fixed order to queue specification in python pipelines.
// The incoming (receiver) queue is named first, the outgoing (sender) queue is named second.
-add PythonRunner Command="-m $PbjSecondStep --receive_queue JavaToPy --send_queue PyToJava" LogFile=word_finder_pipeline.log
+add PythonRunner Command="-m $PbjSecondStep JavaToPy PyToJava" LogFile=word_finder_pipeline.log
//
diff --git a/ctakes-examples/src/user/resources/org/apache/ctakes/examples/pipeline/WordFinderInOne.piper b/ctakes-examples/src/user/resources/org/apache/ctakes/examples/pipeline/PbjWordFinderInOne.piper
similarity index 95%
rename from ctakes-examples/src/user/resources/org/apache/ctakes/examples/pipeline/WordFinderInOne.piper
rename to ctakes-examples/src/user/resources/org/apache/ctakes/examples/pipeline/PbjWordFinderInOne.piper
index 5136d22..516c3ec 100644
--- a/ctakes-examples/src/user/resources/org/apache/ctakes/examples/pipeline/WordFinderInOne.piper
+++ b/ctakes-examples/src/user/resources/org/apache/ctakes/examples/pipeline/PbjWordFinderInOne.piper
@@ -34,7 +34,7 @@ set PbjSecondStep=ctakes_pbj.examples.word_finder_pipeline
// There is a fixed order to queue specification in python pipelines.
// The incoming (receiver) queue is named first, the outgoing (sender) queue is named second.
-add PythonRunner Command="-m $PbjSecondStep --receive_queue JavaToPy --send_queue PyToJava"
+add PythonRunner Command="-m $PbjSecondStep JavaToPy PyToJava"
//