Skip to content

Commit

Permalink
pydelphin dependency
Browse files Browse the repository at this point in the history
guyemerson committed May 24, 2016
1 parent 95b08e9 commit 73e517e
Showing 2 changed files with 9 additions and 7 deletions.
9 changes: 4 additions & 5 deletions pydmrs/pydelphin_interface.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
from configparser import ConfigParser
from delphin.interfaces import ace
from delphin.mrs import simplemrs, dmrx

from pydmrs.core import ListDmrs
from pydmrs.utils import load_config, get_config_option

DEFAULT_CONFIG_FILE = '../configs/default_interface.conf'
DEFAULT_CONFIG_FILE = 'default_interface.conf'

config = ConfigParser()
config.read(DEFAULT_CONFIG_FILE)
DEFAULT_ERG_FILE = config.get('Grammar', 'ERG')
config = load_config(DEFAULT_CONFIG_FILE)
DEFAULT_ERG_FILE = config.get(config, 'Grammar', 'ERG')


def parse(sentence, cls=ListDmrs, erg_file=DEFAULT_ERG_FILE):
7 changes: 5 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
from distutils.core import setup
from setuptools import setup
setup(
name = 'pydmrs',
packages = ['pydmrs'], # this must be the same as the name above
version = '1.0.0',
description = 'A library for manipulating DMRS graphs',
author = 'Ann Copestake, Guy Emerson, Mike Goodman, Matic Horvat, Alex Kuhnle, Ewa Muszyńska',
author_email = '[email protected]',
license = 'MIT',
url = 'https://github.com/delph-in/pydmrs',
download_url = 'https://github.com/delph-in/pydmrs/tarball/1.0.0',
keywords = ['NLP', 'Natural Language Processing', 'Computational Linguistics', 'Semantics'],
classifiers = [],
install_requires = [
'pydelphin'
]
)

0 comments on commit 73e517e

Please sign in to comment.