Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions AutoCompModule.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import pymongo, os, sys, re
from pymongo import MongoClient
from pymongo import Connection

class AutoCompModule:

def __init__(self,DBName):
self.dict = MongoClient().locals()[DBName].dict
self.dictBy2 = MongoClient().locals()[DBName].dictBy2
self.dictBy3 = MongoClient().locals()[DBName].dictBy3
self.dict = Connection()[DBName]['dict']
self.dictBy2 = Connection()[DBName]['dictBy2']
self.dictBy3 = Connection()[DBName]['dictBy3']

def learnSingle(self,fileName):
input = open(fileName, encoding='utf-8')
Expand Down
2 changes: 1 addition & 1 deletion Step_1_Init.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from pymongo import MongoClient

def main():
x=5
x=7;
input = open(sys.argv[1], encoding='utf-8')
words = MongoClient().db.words
words2 = MongoClient().db.words2
Expand Down