Issue I have few elements which I got after performing operation in spacy having type Input – li = [‘India’, ‘Australia’, ‘Brazil’] for i in li: print(type(i)) Output: <class ‘spacy.tokens.token.Token’> <class ‘spacy.tokens.token.Token’> <class ‘spacy.tokens.token.Token’> I want to make all elements
Continue readingTag: spacy
[SOLVED] Matching multiple strings in R/nlp/spacyr
Issue I have a data frame myDataframe <- data.frame(keyword = c(c("meeting", "laptop"),c("attend a meeting", "fan"))) description <- "I have to attend a meeting." I have to match the description with the column keyword in the dataframe and return "attend a
Continue reading[SOLVED] ImportError: No module named 'spacy.en'
Issue I’m working on a codebase that uses Spacy. I installed spacy using: sudo pip3 install spacy and then sudo python3 -m spacy download en At the end of this last command, I got a message: Linking successful /home/rayabhik/.local/lib/python3.5/site-packages/en_core_web_sm –>
Continue reading[SOLVED] SpaCy Dependency Matcher Parsing with Pandas Dataframe
Issue I am having difficulties passing a dataframe column through the SpaCy Dependency Matcher. I attempted to modify the solution found in a pervious question, ‘Spacy Dependency Parsing with Pandas dataframe’ but no luck. import pandas as pd import spacy
Continue reading[SOLVED] Python dataframe delete sentences number from list
Issue I have a column of (quite) long texts in a dataframe, and for each text, a list of sentences indexes that I would like to delete. The sentences indexes were generated by Spacy when I split texts into sentences.
Continue reading[SOLVED] Extract all the data within parenthesis using spacy matcher
Issue I am trying to extract data from within paranthesis using a spacy matcher. Say the text is: ‘ I am on StackOverflow(for x years) and I ask (technical) questions here about Natural Language Processing (NLP) (information retrieval)’ The desired
Continue reading[SOLVED] Matching patterns in spaCy returns a empty result
Issue I was hoping to find some patterns with this simple code. But the result is empty. I’m forgetting something? for tk in doc[:30]: print (tk.text, ‘:’, tk.pos_) Método : NOUN de : ADP avaliaçãoSimulação : NOUN computacional : ADJ
Continue reading[SOLVED] Spacy replace token
Issue I am trying to replace a word without destroying the space structure in the sentence. Suppose I have the sentence text = "Hi this is my dog.". And I wish to replace dog with Simba. Following the answer from
Continue reading[SOLVED] How to remove English-like but non-English words in Python?
Issue I have a *.csv file that has 2 columns with 4 rows of data. I want to delete those rows that contain English-like (Hinglish words eg. kya haal pyare) but non-English words. Note: typos like "alot" or "seperate" should
Continue reading[SOLVED] Create components for spacy pipeline
Issue I’m currently working with Spacy and I’m exploring how I can use pipelines to work more efficiently. I’m trying to create my own components to add to a pipeline, but I keep running into some issued every time. Example
Continue reading