Datasets:

Modalities:
Text
Formats:
text
Size:
< 1K
ArXiv:
Libraries:
Datasets
RepoZero-Py2JS / whoosh /test3.py
jessezhaoxizhang's picture
Duplicate from jessezhaoxizhang/RepoZero-Py2JS
a839836
Raw
History Blame Contribute Delete
375 Bytes
import argparse
from whoosh.fields import Schema, TEXT
from whoosh.analysis import StemmingAnalyzer
parser = argparse.ArgumentParser()
parser.add_argument('--a', type=str, required=True)
args = parser.parse_args()
analyzer = StemmingAnalyzer() # Create stemming analyzer
schema = Schema(content=TEXT(analyzer=analyzer)) # Create schema with custom analyzer
print(schema)