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

from flashtext import KeywordProcessor #text = "@苍月轶 再次核实:骆然5月8日持24小时核酸从宜昌回蓉,到成都24小时内核酸一次,9号回泸定,24小时内又做一次核酸,均阴性,健康码绿码。宜昌不是 AB区域。" text = "成都到北京高铁3小时,郑州到成都2小时" print(text) kp = KeywordProcessor() kp.add_keyword("到成都", ("成都", "ab")) kp.add_keyword("宜昌", ("宜昌", "ab")) print(len(kp)) print(kp) word_index = kp.extract_keywords(text, span_info=True) print(word_index) for...

Problem --------- On aarch64, ‘pip install flashtext’ builds the wheels from the source code and then installs it. It requires the user to have a development environment installed on his...

``` >>> keyword_processor.remove_keywords_from_dict({"product management": ["PM"]}) >>> keyword_processor.remove_keywords_from_list(["java programing"]) >>> keyword_processor.extract_keywords('I am a product manager for a java_2e platform') ``` These all returns extracted words after the removal. But how to...

Hey, consider the following example: ``` from flashtext import KeywordProcessor keyword_processor = KeywordProcessor() # keyword_processor.add_keyword(, ) keyword_processor.add_keyword('Big Apple')#, 'New York') keyword_processor.add_keyword('Bay Area') text1_keywords = 'I love Big Apple and Bay...

If the Chinese keyword is followed by continuous English, it will not be found. ![633GKG8PB`7R$ZNF%M 86%S](https://user-images.githubusercontent.com/48638976/164193695-48006e3a-af64-411d-9dc8-06a2f0b65ce6.png) Should be changed to idx=idy-1 here? After the skip is over, idx is +1...

Hello, I have a question: Can I use stemmed version of keyphrases to extract them? Because, sometimes is usefull use stem to capture some equivalent expressions with variations, for example...

Although the name of the function clearly states that it expects a list, `add_keywords_from_list` should take any container. In the implementation, the only thing done is to loop over the...

Hi, I am using flashtext for searching 694 bad words in some documents for tagging them if they contain bad language or not. But i need the exact match case...

To add keywords from a file in the form key-value map. The idea was to read a list from the file in the form of key and value (in the...