Skip to content

Commit

Permalink
Merge pull request #10 from keoki/master
Browse files Browse the repository at this point in the history
get correct python environment when running scripts
  • Loading branch information
japerk committed Jan 29, 2013
2 parents cb87b04 + 3c28516 commit 5f6bcc6
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion analyze_chunked_corpus.py
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/env python
import argparse import argparse
import nltk.corpus import nltk.corpus
from nltk.tree import Tree from nltk.tree import Tree
Expand Down
2 changes: 1 addition & 1 deletion analyze_chunker_coverage.py
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/env python
import argparse, collections, math import argparse, collections, math
import nltk.corpus, nltk.corpus.reader, nltk.data, nltk.tag, nltk.metrics import nltk.corpus, nltk.corpus.reader, nltk.data, nltk.tag, nltk.metrics
from nltk.corpus.util import LazyCorpusLoader from nltk.corpus.util import LazyCorpusLoader
Expand Down
2 changes: 1 addition & 1 deletion analyze_classifier_coverage.py
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/env python
import argparse, collections, itertools, operator, re, string, time import argparse, collections, itertools, operator, re, string, time
import cPickle as pickle import cPickle as pickle
import nltk.data import nltk.data
Expand Down
2 changes: 1 addition & 1 deletion analyze_tagged_corpus.py
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/env python
import argparse import argparse
import nltk.corpus import nltk.corpus
from nltk.corpus.util import LazyCorpusLoader from nltk.corpus.util import LazyCorpusLoader
Expand Down
2 changes: 1 addition & 1 deletion analyze_tagger_coverage.py
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/env python
import argparse, collections, math, os.path import argparse, collections, math, os.path
import nltk.corpus, nltk.corpus.reader, nltk.data, nltk.tag, nltk.metrics import nltk.corpus, nltk.corpus.reader, nltk.data, nltk.tag, nltk.metrics
from nltk.corpus.util import LazyCorpusLoader from nltk.corpus.util import LazyCorpusLoader
Expand Down
2 changes: 1 addition & 1 deletion categorized_corpus2csv.py
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/env python
import argparse, csv, os.path import argparse, csv, os.path
import nltk_trainer.classification.corpus import nltk_trainer.classification.corpus
from nltk_trainer import load_corpus_reader from nltk_trainer import load_corpus_reader
Expand Down
1 change: 1 addition & 0 deletions classify_corpus.py
Original file line number Original file line Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python
import argparse, itertools, operator, os, os.path, string import argparse, itertools, operator, os, os.path, string
import nltk.data import nltk.data
from nltk.corpus import stopwords from nltk.corpus import stopwords
Expand Down
2 changes: 1 addition & 1 deletion combine_classifiers.py
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/env python
import argparse, os.path import argparse, os.path
import nltk.data import nltk.data
from nltk_trainer import dump_object from nltk_trainer import dump_object
Expand Down
1 change: 1 addition & 0 deletions tag_phrases.py
Original file line number Original file line Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python
import argparse, os.path import argparse, os.path
import cPickle as pickle import cPickle as pickle
import nltk.data, nltk.tag import nltk.data, nltk.tag
Expand Down
2 changes: 1 addition & 1 deletion train_chunker.py
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/env python
import argparse, math, itertools, os.path import argparse, math, itertools, os.path
import nltk.tag, nltk.chunk, nltk.chunk.util import nltk.tag, nltk.chunk, nltk.chunk.util
import nltk_trainer.classification.args import nltk_trainer.classification.args
Expand Down
2 changes: 1 addition & 1 deletion train_classifier.py
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/env python
import argparse, collections, itertools, math, os.path, re, string, operator import argparse, collections, itertools, math, os.path, re, string, operator
import nltk.data import nltk.data
import nltk_trainer.classification.args import nltk_trainer.classification.args
Expand Down
2 changes: 1 addition & 1 deletion train_tagger.py
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/env python
import argparse, math, itertools, os.path import argparse, math, itertools, os.path
import nltk.corpus, nltk.data import nltk.corpus, nltk.data
import nltk_trainer.classification.args import nltk_trainer.classification.args
Expand Down
1 change: 1 addition & 0 deletions translate_corpus.py
Original file line number Original file line Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python
import argparse, os, os.path import argparse, os, os.path
import nltk.data import nltk.data
from nltk.misc import babelfish from nltk.misc import babelfish
Expand Down

0 comments on commit 5f6bcc6

Please sign in to comment.