Questions tagged [johnsnowlabs-spark-nlp]

John Snow Labs’ NLP is a natural language processing tool built on top of Apache Spark ML pipelines

External links

Related tags:

100 questions
0
votes
1 answer

Azure function app stops responding after few seconds resulting in timeout

I am trying to run spark-nlp as azure function. I have a function app which is run with a docker container. My function app code is run on python and I also install java as I run pyspark within it. I use python's flask within one function to handle…
0
votes
0 answers

Wrong or missing inputCols annotators in SparkNLP

I am using the SentimentDetector annotator on dataframe df which has a column text but I keep getting the following error java.lang.IllegalArgumentException: requirement failed: Wrong or missing inputCols annotators in…
0
votes
0 answers

How to use the RegexMatcher in SparkNLP

Here is the case. I want to run SparkNLP on Jupyterlab with Scala kernel. I want to use the RegexMatcher annotation. I saved the pattern in a file named patterns.txt on s3 bucket. And I tried the implementation below import…
Bs He
  • 717
  • 1
  • 10
  • 22
0
votes
2 answers

About an error regarding spark nlp using scala

I am a beginner to spark-nlp and i am learning it by following examples in the johnsnowlabs. I am using SCALA in data bricks. When i follow the example as follows, import com.johnsnowlabs.nlp.base._ import com.johnsnowlabs.nlp.annotator._ import…
0
votes
1 answer

How to use a annotator in sparknlp for a text file

As i am beginner to spark NLP, I started to do some hands on exercises using the functions which are displayed in the johnsnowlabs I am using SCALA from data bricks and i got a large text file from https://www.gutenberg.org/ So first I import…
student_R123
  • 962
  • 11
  • 30
0
votes
1 answer

Pycharm doesnt reslove package dependencies

I installed a pycharm application and did configure interpreter. After i installed spark-nlp package via pip inside pycharm, and tried to run programm, it showed that it missing dependecy in form of pyspark package. When I installed pyspark it…
0
votes
1 answer

Cannot import sparknlp on Databricks

I'm trying to do an import sparknlp on the Databricks platform and I'm getting a similar message to the one reported at After installing sparknlp, cannot import sparknlp I can't figure out how to get the python wrapper installed... I can access…
-1
votes
0 answers

Hugging Face to Spark NLP, Issue in loading file from local

I am trying to replicate : https://github.com/JohnSnowLabs/spark-nlp/blob/master/examples/python/transformers/HuggingFace%20in%20Spark%20NLP%20-%20BertForZeroShotClassification.ipynb while doing this I am getting an error in command 12. it keeps…
-1
votes
0 answers

Why can I only use pyspark in sudo mode?

I'm working on a project using spark-nlp and I believe I've somehow set up something incorrectly as I can only get it to successfully run my python file when I use sudo python main.py, this is also preventing me from using my IDE for jupyter…
Gekko
  • 1
  • 1
  • 1
-1
votes
1 answer

How to get Pre-trained XLNET Sentence embeddings?

I want to get XLNET Pre-trained Sentence Embeddings of any given sentence. Please provide a code snippet to get the embeddings
1 2 3 4 5 6
7