Latest v0.1.58

Hashtag

Supported from ^0.1.54

Manfaatkan fungsi ini untuk menghapus Hashtag dari Tweet.

Cara Pakai

from frasa.preprocess import tweet
 
text = tweet('🕵️ Frasa is #awesome #bgt. http://t.co/g00gl')
 
text.hashtag().remove()
// Before
🕵️ Frasa is #awesome #bgt. http://t.co/g00gl
 
// After
🕵️ Frasa is. http://t.co/g00gl

Get Hashtag List

text.hashtag()
 
# Output
['#awesome', '#bgt']

Count

text.hashtag().count()
 
# Output
2

Get a Single Hashtag

text.hashtag()[0]
 
# Output
'#awesome'