Comments (4)
You already have a BertEmbeddings in your pipeline, you cannot transform the DataFrame with BertEmbeddings separately and pass that to your pipeline. It will end up with to identical embeddings column which is the issue:
Remove this part
test_data = bert_annotator.transform(test_data)
And just do this:
#Creating CoNLL(Conference on Natural Language Learning) files
from sparknlp.training import CoNLL
test_data = CoNLL().readDataset(spark, '/content/test.txt')
test_data.show(5)
test_predictions = ner_model_bert.transform(test_data)
from spark-nlp-workshop.
Please share your full code, information about your environment including your OS, where do you use this, how do you start SparkSession, etc. The more info and steps to reproduce the better. (right now with 1 line is impossible to say anything)
from spark-nlp-workshop.
https://colab.research.google.com/drive/1J7orVd_Nqq-i72c2PfCYqpuZ2AKoejtn?usp=sharing
Here is the colab link, please have a look
from spark-nlp-workshop.
Hi, can you please have a look at colab link
from spark-nlp-workshop.
Related Issues (20)
- How to process a large document which has longer text length for NER? HOT 2
- Dead URLs for example input files
- Create a NLP Lab in Azure from the Marketplace. Unable to access thru the http://IP address HOT 1
- Saving the sparknlp models in Tensorflow or keras format HOT 1
- Py4JJava Error ( java.lang.NoClassDefFoundError) while running Text2SQL colab notebook HOT 5
- Script to convert json file (with RE annotations from ALAB) to Training CSV format HOT 1
- Regarding training of Relation Extraction model HOT 1
- Spacy sentence splitting results in notebook do not reflect current Spacy version HOT 1
- update ALAB conll conversion script
- I can't fit the pipeline for RoBerta For Sequence Classification HOT 1
- data required for training HOT 1
- Entity Recognizer Download HOT 1
- how to load custom trained ner crf model HOT 1
- Inquiring about details of the Entity Resolution Model HOT 2
- NER Demo notebooks fail on NerConverter HOT 1
- Spark NLP Workshop annotators notebook is getting an error HOT 2
- Unexpected format when saving to S3 from EMR HOT 3
- IllegalArgumentException: requirement failed: License Key not set please set environment variable JSL_NLP_LICENSE,SPARK_NLP_LICENSE,SPARK_OCR_LICENSE,JSL_LEGAL_LICENSE,JSL_FINANCE_LICENSE or property jsl.settings.license! HOT 1
- Generate/run output should not be stored in private vars
- does pretrained.cache_folder support self hosted S3A ? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spark-nlp-workshop.