Questions tagged [spacy]
Industrial strength Natural Language Processing (NLP) with Python and Cython
89
questions
0
votes
1
answer
26
views
Why Do Two NER Models with Different Training Data Yield Identical Results?
I've developed several versions of an NER model using spaCy to identify singers in file names. Despite making significant updates to the training corpus—comprising approximately 13,000 entries—and ...
0
votes
0
answers
9
views
Should I merge tokens based on Named Entity Recognition?
I am working on an NLP project for sentiment analysis and I am using SpaCy to tokenize sentences. As I was reading the documentation, I learned about NER and I try to find if it can help me in ...
0
votes
0
answers
13
views
Choosing the right number of tokens in a dictionary for an LDA topic modelling analysis
I have a data set of customers with n complaints.
As a result, I want to perform topic modelling to find topics that customers talk about in their complaints. For this I use LDA from spacy.
I have ...
0
votes
0
answers
6
views
Semantic grouping and replacement of words to improve topic modelling with LDA
I have a data set of customers with complaints.
As a result, I want to perform topic modelling to find topics that customers talk about in their complaints. I use LDA for this. In the results of LDA, ...
0
votes
0
answers
14
views
Best approach to find whether a scientific research paper has human trials/human testing or no
I want to know the best way to know if a paper has human trials/test subjects/testing. Was thinking of searching for some keywords in the paper like "Human", "Trials" etc.
The ...
1
vote
2
answers
88
views
Unable to do POS (part-of-speech) tagging using Spacy
I managed to load as
nlp = spacy.load("en_core_web_sm-3.5.0")
but when i run the 2nd line i.e. ...
1
vote
1
answer
212
views
Why is Spacy sentiment score 0.0 for a sentence?
I'm trying to get a sentence's sentiment score using Spacy and apparently every sentence I pass gets a score of 0.0. Can someone help me understand what's going wrong here?
...
0
votes
1
answer
59
views
What are the approaches for extracting an injury and its description from a paragraph?
Suppose I have a paragraph which explains the injuries and its descriptions. I want to extract the injuries and its corresponding descriptions from the text. How can I do that?
For example, the ...
3
votes
1
answer
1k
views
Sentence tokenization for sentence without punctuation
I wish to perform sentence tokenization for sentence without punctuation, below is the code:
...
3
votes
1
answer
344
views
SpaCy textcat_multilabel, how to supply data
Just as I was warned, the documentation in SpaCy is a bit difficult to read. I don't have a software-engineer / CS background, so I'm really struggling with this.
I would like to use SpaCy's ...
0
votes
0
answers
13
views
Using NLP output for subsequent model?
I use SpaCy to output a vectorized array of my text field. I'm having issues plugging this output into my random forest and could use some guidance. I label encoded other fields so my pandas dataframe ...
1
vote
0
answers
28
views
How to use/vectorize SpaCy output?
I'm performing preprocessing on a dataset that I'm planning on using as a feature set for an RF model. I don't have too much experience with NLP so just want to make sure I'm processing my text fields ...
0
votes
0
answers
105
views
Creating variations of prompts for ChatGPT
I am developing a fine tune model to emulate a tech support chatbot based on my given information. I am struggling to create a large dataset (aiming for 1000 prompt/completion pairs), does anyone have ...
0
votes
1
answer
53
views
Who the article is about
I have a problem that I need to solve. It involves articles about football. I have to determine who is the main protagonist in the article. I already have a solution that I have implemented. Its good ...
0
votes
1
answer
96
views
How to Train Q&A model using Bert for multiple comma seperated values in a given data
I'm using the entire text book data by scraping the information of each chapter.
How do I highlight the spacy spancat NER or Bert Q&A based models to train multiple comma separated values in the ...
1
vote
1
answer
533
views
NLP Question: Where can I find a list of all open compound words (with spaces in them), like "peanut butter" or "high school"? [close
I already have a list of "1-gram" words, which include closed compound words like "skyscraper" or "weatherman."
However, I'm also interested in compiling a list of "...
0
votes
1
answer
147
views
Possible NLP approaches to extract 'goals' from text
I am planning to take up an interesting NLP project. I want to extract 'goal' statements from lengthy reports. For example, the goals can be We would be reducing our carbon footprint by 50% by 2025 or ...
0
votes
1
answer
75
views
Best approach for rule-based system in multilabel classification-problem?
I’m new to the world of NLP and am looking for some guidance. I want to create a rule-based system that “grades” text in accordance to some set of criteria. For example, one criteria could be “The ...
3
votes
1
answer
503
views
Is there a way to map words to their synonyms in tfidf?
I have the following code:
...
1
vote
0
answers
83
views
Issue with Relation Annotation (rel.manual) in Spacy's Prodigy tool
I am trying to build a relation extraction model via spacy's prodigy tool.
NOTE: ner.manual, ner.correct, rel.manual are all recipes provided by prodigy.
(ner.manual, ner.correct) The first step ...
0
votes
1
answer
198
views
Named Entity Recognition using Spacy V3 with imbalance entities
Will the spacy V3 model get affected by imbalanced entities?
I have got a dataset annotated in spacy format and if I look into my custom entities the rations are different for different entities. For ...
5
votes
1
answer
440
views
Spacy custom POS tagging for medical concepts
We are a group of doctors trying to use linguistic features of "Spacy", especially the part of speech tagging to show relationships between medical concepts like:
'Femoral artery ...
0
votes
0
answers
594
views
Dealing with near duplicates using NLP
I have a dataframe like as shown below
...
0
votes
1
answer
162
views
How to train a spaCy language model from scratch?
I am still quite a beginner with spaCy (although I already do enjoy it). I would like to create a language model for a language still unsupported, that is from scratch. I do have comprehensive text ...
1
vote
0
answers
151
views
What approach I should take to extract number entity from dataset
I have the training, validation, and test dataset. The first column has store data and the second column has store numbers. I need to develop an entity extractor model which can extract store numbers ...
2
votes
1
answer
1k
views
spacy multi label classification help
I would like to create a multilabel text classification algorithm using SpaCy text multi label. I am unable to understand the following questions:
How to convert the training data to SpaCy format i....
3
votes
1
answer
266
views
Compare Books using book categories list NLP
I have a database of books. Each book has a list of categories that describe the genre/topics of the book (I use Python models).
The categories in the list most of the time are composed of 1 to 3 ...
1
vote
2
answers
755
views
Train a spaCy model for semantic similarity
I'm attempting to train a spaCy model for the purposes of computing semantic similarity but I'm not getting the results I would anticipate.
I have created two text files that contain many sentences ...
0
votes
0
answers
97
views
spaCy text classification based on NER
I'm pretty new to spaCy and NLP in general, and I'm trying to figure out how to classify text. I've already gone through quite a few tutorials, and have figured out how to train my model, based on ...
0
votes
1
answer
6k
views
How to extract details (educational details, exp details etc.) from a resume?
I am trying to build a resume parser which can extract details such as Name, Address, Education details (degree name, college name, university name, course duration), Experience details (designation, ...
0
votes
0
answers
413
views
Open Source Annotation Tools for spaCy's Entity Linker?
According to the Tutorial "Training a custom ENTITY LINKING model with spaCy" (20:33) this is the training data format for spaCy's Entity Linker:
...
3
votes
1
answer
1k
views
How to identify/recognize that a sentence about talks about future?
Brief Introduction:
I have a report/paragraph in which there are sentences with reference to future plans/outlooks/expectations for a particular entity. I want to extract all such sentences for now.
...
2
votes
1
answer
839
views
Converting to lowercase while creating dataset for NER using spacy
I am trying to make a custom entity model for an NER application using spacy. In several NLP projects, I have converted all the data to lowercase and applied several ML techniques. For NER also should ...
7
votes
1
answer
3k
views
Meaning of NER Training values using Spacy
I am trying to train custom entities using Spacy. During the training process I am getting number of values of LOSS, score etc. What is the meaning of these values
...
1
vote
1
answer
313
views
Why do we calculate the vector of a document by averaging the vectors of all the words?
I am trying to build a search engine to query a folder of documents. Tutorials online suggest that we should obtain the vector of a document by averaging the vectors of all the words, then compare ...
0
votes
1
answer
120
views
Traning New Entities in Spacy NER Model
I want to add new entities to python spacy NER module. I have few doubts regarding this.
Is it possible to remove some of the presently existing entities and add new entities to the remaining ones.
...
1
vote
0
answers
28
views
Personal Project Classifying Bank Account Data - NLP Noob [closed]
Background:
I'm looking to get up to speed with some of the newer ML classification techniques and keep my ML python fresh in my spare time/learn some new skills, so as a challenge I'm trying to see ...
3
votes
3
answers
4k
views
Phone number tagging with spaCy
I have to do a BIO tagging for a given set of sentences.
For example:
...
4
votes
2
answers
2k
views
Does spaCy support multiple GPUs?
I was wondering if spaCy supports multi-GPU via mpi4py?
I am currently using spaCy's nlp.pipe for Named Entity Recognition on a high-performance-computing cluster ...
0
votes
0
answers
2k
views
ValueError: GPU is not accessible. Was the library installed correctly?
I installed spacy 3 in a venv and tried to execute:
spacy.require_gpu()
Then I got this as output:
...
1
vote
0
answers
358
views
How can I retrain existing spacy v3 NER model with additional data?
I have trained Spacy v3 model on 1 million rows and want to train for additional 1 million.
...
2
votes
1
answer
39
views
Heauristics for a NER model prediction
I am trying to build and NER model that can name entities in a "Job description."
The entities are:
Mandatory skills (Must have skills like java, python, c++ etc.)
Nicetohave skills (the ...
1
vote
1
answer
256
views
How can i extract words from a single concatenated word?
I'm stuck on this problem and would love some input.
I have mulitple words such as getExtention, getPath, someWord or someword and i want to separate each concatinated words into its own words such as:...
1
vote
1
answer
105
views
NLP approaches to infer Processes from Text
I would like to use NLP techniques to infer a process out of raw text. For example, if I have a sentence like:
Recruitment is about attracting and selecting the right person for the job.
To get the ...
3
votes
2
answers
1k
views
How to make the spacy 3.0 custom NER model training to optimize on precision rather than recall?
My current custom NER model is good on recall but I want to focus on improving precision, is it possible to change the optimizer metric in config file?
2
votes
0
answers
90
views
Spacy dependencymatcher pattern not returning matches
I am trying to create, add and get results from a pattern using spacy DependencyMatcher.
I created a pattern for the sentence: "From Monday to Friday"
The full pattern:
...
0
votes
1
answer
344
views
How to predict the sentiment of the entities form the tweet?
I have a JSON file (tweets.json) that contains tweets (sentences) along with the name of
the author.
Objective 1: Get the most frequent entities from the tweets.
Objective 2: Find out the sentiment/...
3
votes
1
answer
2k
views
Testing Spacy NER model
I've trained an NER model with the use of Spacy, and I would like to test the accuracy on a test dataset. What would be the best way to perform this?
1
vote
1
answer
1k
views
Extracting Names using NER | Spacy
I'm new to NER and I've been trying to extract names using Spacy. Here's my code:
...
3
votes
0
answers
194
views
Medical NER for French language
I'm currently exploring the options to extract medical NER specifically for French language. I tried SpaCy's general French NER but it wasn't helpful to the cause (...