flashtext icon indicating copy to clipboard operation
flashtext copied to clipboard

Extract Keywords from sentence or Replace keywords in sentences.

Results 70 flashtext issues
Sort by recently updated
recently updated
newest added

I am wondering if it's possible to handle misspell errors. Words to match: ``"skype"`` Sentence: ``"hello, do you have skpe ?"`` My current implementation is to generate all possible candidates,...

Is there a way to set the priority of string replacements? Could I do something that could preference longer replacements (e.g. "I Love New York" -> "ILNY" v. "New York"...

Hi, Can you let me know the recent git branch that is pushed to Pip installation? https://pypi.org/project/flashtext/2.7/ Latest Version= 2.7 Last released: Feb 16, 2018 I would like to make...

For example: keyword_processor = KeywordProcessor() keyword_dict = {"news_channel": ["CNN","CCTV","BBC"],"neural_network": ["CNN", "RNN"]} keyword_processor.add_keywords_from_dict(keyword_dict) keyword_processor.extract_keywords('I like CNN') we hope get result as follows: "news_channel_|_neural_network" we can use str.split() to get real clean...

``` kwp = KeywordProcessor() kwp.add_keyword('', '') kwp.replace('onetwo') ``` As a result I get an unchanged string. Is there a way to use flashtext to remove keywords from the text?

Hi, Both `re2` and `hyperscan` are regex engines tuned for performance. Did you try comparing flashtext to them? Thanks,

Hi, can you facilitate adding support to libraries that support big lists like pandas or Dask or any way to support large JSON? If it's not possible, pointing to appropriate...

For any use case where the goal is to preserve the original text keyword and prepend/append to it, these changes allow for that without replacing the original text with the...

My python3 code: keyword_processor.add_keyword('{ProductName}', 'MILK') keyword_processor.add_keyword('{ParkingPlace}', 'good') case1 = keyword_processor.replace_keywords('Hello,{ProductName}{ParkingPlace}!') print(case1) case2 = keyword_processor.replace_keywords('Hello,{ProductName} {ParkingPlace}!') print(case2) # the output result Hello,MILK{ParkingPlace}! Hello,MILK good! I want the output of case1 same...