Skip to content

Commit

Permalink
cleaning up package
Browse files Browse the repository at this point in the history
  • Loading branch information
accraze committed Oct 13, 2015
1 parent 332d687 commit 484543c
Show file tree
Hide file tree
Showing 15 changed files with 42 additions and 3 deletions.
22 changes: 22 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
The MIT License (MIT)

Copyright (c) 2015 A.Craze

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

Empty file added pymtranslate/__init__.py
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions test.py → pymtranslate/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
# sys.path.append('..')
from translator import Translator

english = 'data/short.en'
foreign = 'data/short.de'
wordList = 'data/devwords'
english = 'pymtranslate/data/short.en'
foreign = 'pymtranslate/data/short.de'
wordList = 'pymtranslate/data/devwords'


class TestTranslationFunctions(unittest.TestCase):
Expand Down
2 changes: 2 additions & 0 deletions translator.py → pymtranslate/translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ def initTef(self):
probs[word] = word_poss

self.probs = probs
print 'PROBS!!!'
print self.probs

for word in self.en_words:
# print self.probs
Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[metadata]
description-file = README.md
13 changes: 13 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from distutils.core import setup
setup(
name = 'pymtranslate',
packages = ['pymtranslate'], # this must be the same as the name above
version = '1.0',
description = 'A probabilistic text-based language translator',
author = 'Andy Craze',
author_email = '[email protected]',
url = 'https://github.com/accraze/pymtranslate', # use the URL to the github repo
download_url = 'https://github.com/peterldowns/pymtranslate/tarball/1.0', # I'll explain this in a second
keywords = ['translation', 'nlp', 'machine', 'text', 'corpus', 'statistics', 'language', 'probability'], # arbitrary keywords
classifiers = [],
)

0 comments on commit 484543c

Please sign in to comment.