Git Product home page Git Product logo

ruqia-library's Introduction

Hi there ๐Ÿ‘‹

  • ๐Ÿ”ญ Iโ€™m currently working on Data Science and AI/ML/DL
  • ๐ŸŒฑ Iโ€™m currently learning NLP
  • ๐Ÿ‘ฏ Iโ€™m looking to collaborate on Arabic NLP
  • ๐Ÿค” Iโ€™m looking for help with Data Science and Machine learning
  • ๐Ÿ’ฌ Ask me about any repo in my account
  • ๐Ÿ“ซ How to reach me: ruqyai.github.io
  • ๐Ÿ˜„ Pronouns: Her/She
  • โšก Fun fact: ...๐Ÿ’ฌ

ruqia-library's People

Contributors

ruqyai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ruqia-library's Issues

Error in code

Code:
df['cleanedtext']= ruqiya.clean_text(df['text'])
df['cleanedtext'].head()

Error:

TypeError Traceback (most recent call last)
/tmp/ipykernel_27/3413012263.py in
----> 1 df['cleanedtext']= ruqiya.clean_text(df['text'])
2 df['cleanedtext'].head()

/opt/conda/lib/python3.7/site-packages/ruqiya/ruqiya.py in clean_text(text)
44 10-remove_emojis
45 """
---> 46 text=remove_emails(text)
47 text=remove_URLs(text)
48 text=remove_mentions(text)

/opt/conda/lib/python3.7/site-packages/ruqiya/ruqiya.py in remove_emails(text)
141 def remove_emails(text):
142 """ remove the emails from the text ."""
--> 143 text = re.sub(r'[\w.-]+@[\w.-]+',"",text)
144 return text
145

/opt/conda/lib/python3.7/re.py in sub(pattern, repl, string, count, flags)
192 a callable, it's passed the Match object and must return
193 a replacement string to be used."""
--> 194 return _compile(pattern, flags).sub(repl, string, count)
195
196 def subn(pattern, repl, string, count=0, flags=0):

TypeError: expected string or bytes-like object

I want to solve this problem to use your library.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.