Questions tagged [spacy]

Industrial strength Natural Language Processing (NLP) with Python and Cython

Filter by
Sorted by
Tagged with
0
votes
0answers
18 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: ...
0
votes
1answer
36 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. ...
0
votes
0answers
9 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 ...
0
votes
1answer
20 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 ...
0
votes
1answer
26 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
0answers
14 views

Training Spacy for NER recognition using scraped data

I am working on scraped data from different urls but all related to a musical related urls. I am trying to achieve recognition of items from scraped data. One cleaned scraped data and its entities is ...
0
votes
0answers
13 views

Building a tagger model for a specific domain

I am trying to build a tagger model in spaCy v3.1 with .pos_ attributes for a specific domain. The code below manages to compile, however, it is not returning the <...
0
votes
1answer
20 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. ...
0
votes
0answers
32 views

spaCy NER models (v2x) - how to deal with inflections?

I am training custom Spacy NER models (v2x). I have come across an interesting problem. There are languages that are morphologically rich. For example, in German: Nominative: der Name, Accusative: den ...
1
vote
0answers
14 views

Adding additional classes in stanford NLP NER or Spacy

For stanford NER 3 class model, Location, Person, Organization recognizers are available. Is it possible to add additional classes to this model. For example : Sports as one class to tag sports names. ...
1
vote
0answers
17 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 ...
1
vote
1answer
71 views

Phone number tagging with spaCy

I have to do a BIO tagging for a given set of sentences. For example: ...
0
votes
0answers
53 views

Cross validation in SpaCy NER

I'm working on a custom NER model that I created with SpaCy, and for training/testing purposes I would like to use cross validation. Does SpaCy have the option to somehow perform this? If not, what ...
4
votes
1answer
115 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
0answers
294 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: ...
0
votes
0answers
73 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
1answer
23 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
1answer
39 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
1answer
71 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 ...
0
votes
0answers
22 views

Generate UML diagrams after analyzing given text requirement using NLP

I want to generate UML diagrams (use-case,activity,sequence,class) from a given text requirement that look like this. And I want to use python NLP library such as Spacy to identify actors, actions, ...
3
votes
2answers
186 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
0answers
25 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
1answer
44 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/...
2
votes
1answer
101 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?
0
votes
0answers
30 views

Extracting "hidden" costs from financial statements using NLP

I'm designing a NLP model to extract various kinds of "hidden" expenses from 10-K and 10-Q financial statements. I've come up with about 7 different expense categories (restructuring costs, ...
0
votes
1answer
80 views

Extracting Products Name from Unstructured text

I have unstructured text like this ...
1
vote
1answer
118 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
0answers
51 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 (...
1
vote
1answer
32 views

Spacy - Ignored (essential) entities during labeling - how important is this aspect?

I'm training a custom Spacy model. Does it affect the results whether I leave entities unlabeled? For example, Germany is LOC. In one example (1) I label this. In the other example (2) I ignore it and ...
5
votes
2answers
525 views

Converting paragraphs into sentences

I'm looking for ways to extract sentences from paragraphs of text containing different types of punctuations and all. I used SpaCy's ...
4
votes
2answers
242 views

Is NLP suitable for my legal contract parsing problem?

My company has a product that involves the extraction of a variety of fields from legal contract PDFs. The current approach is very time consuming and messy, and I am exploring if NLP is a suitable ...
2
votes
1answer
59 views

How to go about training a NER model to extract book citations in free-form?

I'm doing a project where I wish to create a graph visualization of free-form citations (not academic style citations) across all my e-books. E.g. David Foster Wallace's essays cite a lot of other ...
2
votes
0answers
351 views

improve NER model accuracy with spaCy dependency tree

I have search at lot, was not able to find a solution for my problem... I am training a NER model, that should detect two types of words: Instructions and Conditions. This is not the standard use-case ...
0
votes
0answers
236 views

Training custom NER on OCR text with SpaCy won't train

I want to perform information extraction from documents. I wanted to try Spacy's NER method, so I follow following steps : 1)OCR on text document, using Tesseract. As output I have a list of words ...
0
votes
1answer
39 views

making conclusions after sentiment analysis

After performing some sentiment analysis, I have a dataset that looks like this: For different products, using online reviews, I have obtained some values for positive/negative sentiments. However, ...
3
votes
1answer
106 views

Smart sentence segmentation not splitting on abbreviations

Sentencer from SpaCy and NLTK does not catch the fact that typical abbreviations (e.g. Mio. for Million in German) and the ...
2
votes
1answer
150 views

Spacy tokenizer that strips HTML/XML keeping the positions

I'm new to Spacy and infact new to Data Science. I would like to process some XML files for NER and then mark that in the original XML. I would like to know how to tokenize the XML for the NER. I ...
0
votes
1answer
780 views

How to serialize/pickle a spacy ner model?

I have trained a custom SpaCy named entity recognition model. I saved the model to disk using: nlp.to_disk() which results in keeping the model in a folder. Is it ...
2
votes
1answer
648 views

Twitter POS and NER: What is state-of-the-art?

What is the current state-of-the-art for pos tagging and named entity recognition for twitter data? Are industrial-strength programs like Spacy and ...
2
votes
1answer
304 views

Detect passive voice in headlines

To detect passive voice in sentences, we can use the spacy module to tag each token in the sentence, then build a classifier to classify it as passive or active based on conventional grammatical rules,...
0
votes
1answer
107 views

Text Classification on a very small data set with a lot of classes

I have a data set consisting of 455 rows spread over 21 different classes. The data set is imbalanced as well as you can see below. ...
1
vote
2answers
44 views

How do you distinguish between conversational text and possible news article?

Context When you receive messages in group chats, how do you detect if that message belongs to conversational dialogue or if it is a 'news' article (could be fake or real) that they are sharing? ...
0
votes
1answer
276 views

spaCy - Text Preprocessing - Keeping "Pronouns" in text

I am fairly new to machine learning and NLP in general. I am trying to wrap my head around how to do proper text pre-processing (cleaning the text). I have built a custom text classification model. I ...
1
vote
1answer
62 views

Organization finder in spaCy

I am trying to find the parties between which the agreement is executed from the statement below. AGREEMENT, dated as of January 10, 2000, is entered into by and between ABC-EFG GROUP Inc. having an ...
3
votes
1answer
2k views

Address parsing using spaCy

I am trying to parse addresses from various documents using spaCy using NER but the results are not so accurate. I know this is bit generic question but it would be a great help if I could get ...
1
vote
1answer
110 views

SpaCy string store

I am trying to get the hash values for some English words from the string store of SpaCy. ...
0
votes
1answer
298 views

What should return doc.ents if the doc have no entities, in spacy?

I want to answer this question: "How many sentences contain named entities given a doc?" and I have this piece of code as solution ...
1
vote
0answers
306 views

Flair Custom NER

I'm working on a problem in the domain of NER. I have a dataset wherein I need to have custom tags for different entities. I don't know how to start or even where to start. I know that there are ...
3
votes
1answer
245 views

Character-level embeddings in python

I'm working on an NLP task that requires the use of character level embeddings, and I've been trying to use Spacy. However, it seems that spacy uses word-level embeddings for the word vectors, and I ...
0
votes
1answer
92 views

Where does spacy, nltk, prodigy, sklearn fit in the AI project?

Where does tools like spacy, sklearn, prodigy, nltk fit in the below AI project architecture and what are some common alternatives to these: