aphp / UimaOnSpark

Way to run Uima Pipelines on Apache Spark
10 stars 4 forks source link

sbt build fails #3

Open tomersagi opened 3 years ago

tomersagi commented 3 years ago

Running SBT as per the instructions results in the following errors:

[error] /home/roott/UimaOnSpark/src/main/scala/fr/aphp/wind/uima/spark/LogQuery.scala:22: object dkpro is not a member of package org.apache.uima
[error] import org.apache.uima.dkpro.spark.PojoTest
[error]                        ^
[error] /home/roott/UimaOnSpark/src/main/scala/fr/aphp/wind/uima/spark/LogQuery.scala:22: object dkpro is not a member of package org.apache.uima
[error] import org.apache.uima.dkpro.spark.PojoTest
[error]                        ^
[error] /home/roott/UimaOnSpark/src/main/scala/fr/aphp/wind/uima/spark/LogQuery.scala:31: object dkpro is not a member of package org.apache.uima
[error]           val tt = new org.apache.uima.dkpro.spark.PojoTest("/tmp/")
[error]                                        ^
[error] /home/roott/UimaOnSpark/src/main/scala/fr/aphp/wind/uima/spark/LogQuery.scala:31: object dkpro is not a member of package org.apache.uima
[error]           val tt = new org.apache.uima.dkpro.spark.PojoTest("/tmp/")
[error]                                        ^
[error] /home/roott/UimaOnSpark/src/main/scala/fr/aphp/wind/uima/spark/MimicSectionExtractor.scala:23: object dkpro is not a member of package org.apache.uima
[error] import org.apache.uima.dkpro.spark.SectionSegmenterPojo
[error]                        ^
[error] /home/roott/UimaOnSpark/src/main/scala/fr/aphp/wind/uima/spark/MimicSectionExtractor.scala:23: object dkpro is not a member of package org.apache.uima
[error] import org.apache.uima.dkpro.spark.SectionSegmenterPojo
[error]                        ^
[error] /home/roott/UimaOnSpark/src/main/scala/fr/aphp/wind/uima/spark/SectionExtract.scala:23: object dkpro is not a member of package org.apache.uima
[error] import org.apache.uima.dkpro.spark.SectionSegmenterPojo
[error]                        ^
[error] /home/roott/UimaOnSpark/src/main/scala/fr/aphp/wind/uima/spark/SectionExtract.scala:38: object dkpro is not a member of package org.apache.uima
[error]   @transient val tt = new org.apache.uima.dkpro.spark.SectionSegmenterPojo("ref_doc_section.csv");
[error]                                           ^
[error] /home/roott/UimaOnSpark/src/main/scala/fr/aphp/wind/uima/spark/SectionExtract.scala:23: object dkpro is not a member of package org.apache.uima
[error] import org.apache.uima.dkpro.spark.SectionSegmenterPojo
[error]                        ^
[error] /home/roott/UimaOnSpark/src/main/scala/fr/aphp/wind/uima/spark/SectionExtract.scala:38: object dkpro is not a member of package org.apache.uima
[error]   @transient val tt = new org.apache.uima.dkpro.spark.SectionSegmenterPojo("ref_doc_section.csv");
[error]                                           ^
[error] /home/roott/UimaOnSpark/src/main/scala/fr/aphp/wind/uima/spark/SentenceExtract.scala:23: object dkpro is not a member of package org.apache.uima
[error] import org.apache.uima.dkpro.spark.SentenceSegmenterPojo
[error]                        ^
[error] /home/roott/UimaOnSpark/src/main/scala/fr/aphp/wind/uima/spark/SentenceExtract.scala:40: object dkpro is not a member of package org.apache.uima
[error]   @transient val tt = new org.apache.uima.dkpro.spark.SentenceSegmenterPojo();
[error]                                           ^
[error] /home/roott/UimaOnSpark/src/main/scala/fr/aphp/wind/uima/spark/SentenceExtract.scala:23: object dkpro is not a member of package org.apache.uima
[error] import org.apache.uima.dkpro.spark.SentenceSegmenterPojo
[error]                        ^
[error] /home/roott/UimaOnSpark/src/main/scala/fr/aphp/wind/uima/spark/SentenceExtract.scala:40: object dkpro is not a member of package org.apache.uima
[error]   @transient val tt = new org.apache.uima.dkpro.spark.SentenceSegmenterPojo();
[error]                                           ^
[error] /home/roott/UimaOnSpark/src/main/scala/fr/aphp/wind/uima/spark/SentenceExtract.scala:63: ambiguous implicit values:
[error]  both method newIntEncoder in class SQLImplicits of type => org.apache.spark.sql.Encoder[Int]
[error]  and method newLongEncoder in class SQLImplicits of type => org.apache.spark.sql.Encoder[Long]
[error]  match expected type org.apache.spark.sql.Encoder[U]
[error]     .map(x => tt.analyzeText(x.text).asInstanceOf[String])
[error]         ^
[error] 8 errors found
[error] /home/roott/UimaOnSpark/src/main/scala/fr/aphp/wind/uima/spark/SentenceExtract.scala:63: ambiguous implicit values:
[error]  both method newIntEncoder in class SQLImplicits of type => org.apache.spark.sql.Encoder[Int]
[error]  and method newLongEncoder in class SQLImplicits of type => org.apache.spark.sql.Encoder[Long]
[error]  match expected type org.apache.spark.sql.Encoder[U]
[error]     .map(x => tt.analyzeText(x.text).asInstanceOf[String])
[error]         ^
[info] No documentation generated with unsuccessful compiler run
[error] 8 errors found
[error] (compile:doc) Scaladoc generation failed
[error] (compile:compileIncremental) Compilation failed
[error] Total time: 76 s, completed 19-Jul-2021 11:23:29
tomersagi commented 3 years ago

I renamed all the uima-php class package names and replaces TestPojo usage with a SectionSegmenter. Now it compiles. I hope it still works... If it does I will add a pull request with a working fork.

tomersagi commented 3 years ago

@parisni If you approve my pull request we can close this issue.

parisni commented 3 years ago

Sorry, I am not involved in the project anymore