Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPARKNLP-839 Fix Java Compatibility Issue #13806

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
package com.johnsnowlabs.nlp.annotators.ner.dl

import com.johnsnowlabs.nlp.util.io.ResourceHelper
import org.apache.commons.lang3.SystemUtils
import org.apache.spark.SparkFiles
import org.apache.spark.sql.SparkSession
import org.tensorflow.TensorFlow
Expand All @@ -38,14 +37,7 @@ object LoadsContrib {
* In TensorFlow 1.15.0 we don't need to load any .so files
* We reserve this feature for the future releases
* */
lazy val contribPaths: Option[(String, String)] =
if (SystemUtils.IS_OS_MAC || SystemUtils.IS_OS_MAC_OSX) {
None
} else if (SystemUtils.IS_OS_WINDOWS) {
None
} else {
None
}
lazy val contribPaths: Option[(String, String)] = None

private def getFileName(path: String) = {
"sparknlp_contrib" + new File(path).getName.take(5)
Expand Down