Pustaka Taratsa
Python: cari-stopwords.py

Python: cari-stopwords.py

Penulis: Onno Widodo Purbo

Install dulu pip install nltk Source code import os,nltk,os.path,re,string import argparse from nltk.stem.porter import PorterStemmer ps=PorterStemmer() def hanya_huruf( input ): r=re.match('^[a-zA-Z]+$', input) if r==None: return False else: return True def parse_args(): parser = argparse.ArgumentParser() parser.add_argument('-i', '--infile', default= , help='input filename') return