Skip to content

Commit

Permalink
Move delphin.mrs.vpm to delphin.vpm
Browse files Browse the repository at this point in the history
Part of #124
  • Loading branch information
goodmami committed Apr 18, 2019
1 parent 7553c45 commit e62694e
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ these changes are prefixed with "**BREAKING**"
* `delphin.mrs.components._VarGenerator` to `delphin.variable.VariableFactory`
* `delphin.mrs.config.UNKNOWNSORT` to `delphin.variable.UNKNOWN`
* `delphin.mrs.config.HANDLESORT` to `delphin.variable.HANDLE`
* `delphin.mrs.vpm` to `delphin.vpm`

### Removed

Expand Down
4 changes: 2 additions & 2 deletions delphin/mrs/vpm.py → delphin/vpm.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def load(source, semi=None):
Args:
source: a filename or file-like object containing the VPM
definitions
semi (:class:`~delphin.mrs.semi.SemI`, optional): if provided,
semi (:class:`~delphin.semi.SemI`, optional): if provided,
it is passed to the VPM constructor
Returns:
a :class:`VPM` instance
Expand Down Expand Up @@ -109,7 +109,7 @@ class VPM(object):
featmap is a tuple of two lists: (source_features,
target_features); and valmap is a list of value tuples:
(source_values, OP, target_values)
semi (:class:`~delphin.mrs.semi.SemI`, optional): if provided,
semi (:class:`~delphin.semi.SemI`, optional): if provided,
this is used for more sophisticated value comparisons
"""

Expand Down
1 change: 0 additions & 1 deletion docs/api/delphin.mrs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,4 @@ delphin.mrs
delphin.mrs.query.rst
delphin.mrs.simpledmrs.rst
delphin.mrs.simplemrs.rst
delphin.mrs.vpm.rst
delphin.mrs.xmrs.rst
6 changes: 3 additions & 3 deletions docs/api/delphin.mrs.vpm.rst → docs/api/delphin.vpm.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

delphin.mrs.vpm
===============
delphin.vpm
===========

.. automodule:: delphin.mrs.vpm
.. automodule:: delphin.vpm

Module functions
----------------
Expand Down
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ PyDelphin
api/delphin.tokens.rst
api/delphin.tsql.rst
api/delphin.variable.rst
api/delphin.vpm.rst


Indices and tables
Expand Down
2 changes: 1 addition & 1 deletion tests/mrs_vpm_test.py → tests/vpm_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import pytest

from delphin.mrs import vpm
from delphin import vpm


def test_invalid():
Expand Down

0 comments on commit e62694e

Please sign in to comment.