Skip to content

Commit

Permalink
change package name
Browse files Browse the repository at this point in the history
  • Loading branch information
Blubberli committed Jan 14, 2020
1 parent 6ecad2e commit d6c5b2c
Show file tree
Hide file tree
Showing 36 changed files with 30 additions and 30 deletions.
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.
4 changes: 2 additions & 2 deletions scripts/filterconfig.py → germanetpy/filterconfig.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import re
import itertools
from scripts.synset import WordCategory, WordClass
from scripts.lexunit import OrthFormVariant
from germanetpy.synset import WordCategory, WordClass
from germanetpy.lexunit import OrthFormVariant


class Filterconfig:
Expand Down
File renamed without changes.
12 changes: 6 additions & 6 deletions scripts/germanet.py → germanetpy/germanet.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
from collections import defaultdict
import progressbar
from progressbar import Percentage, Bar
from scripts.utils import parse_xml
from scripts.synsetLoader import load_lexunits
from scripts.iliLoader import load_ili
from scripts.wictionaryLoader import load_wiktionary
from scripts.relationLoader import load_relations
from scripts.frames import Frames
from germanetpy.utils import parse_xml
from germanetpy.synsetLoader import load_lexunits
from germanetpy.iliLoader import load_ili
from germanetpy.wictionaryLoader import load_wiktionary
from germanetpy.relationLoader import load_relations
from germanetpy.frames import Frames


class Germanet:
Expand Down
2 changes: 1 addition & 1 deletion scripts/iliLoader.py → germanetpy/iliLoader.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from scripts.iliRecord import IliRecord
from germanetpy.iliRecord import IliRecord

LEXID = "lexUnitId"
EWNREL = 'ewnRelation'
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from scripts.synset import WordCategory
from germanetpy.synset import WordCategory


# get the depth (maybe extra method?)
Expand Down
4 changes: 2 additions & 2 deletions scripts/relationLoader.py → germanetpy/relationLoader.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from scripts.lexunit import LexRel
from scripts.synset import ConRel
from germanetpy.lexunit import LexRel
from germanetpy.synset import ConRel

NAME = 'name'
FROM_NODE = 'from'
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions scripts/synsetLoader.py → germanetpy/synsetLoader.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from scripts.compoundInfo import CompoundInfo, CompoundCategory, CompoundProperty
from scripts.lexunit import Lexunit, LexRel
from scripts.synset import Synset, WordCategory, WordClass
from scripts.utils import convert_to_boolean
from germanetpy.compoundInfo import CompoundInfo, CompoundCategory, CompoundProperty
from germanetpy.lexunit import Lexunit, LexRel
from germanetpy.synset import Synset, WordCategory, WordClass
from germanetpy.utils import convert_to_boolean

# Lexunit xml attribute values
LEXID = 'id'
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from scripts.wictionaryparaphrase import WiktionaryParaphrase
from scripts.utils import convert_to_boolean
from germanetpy.wictionaryparaphrase import WiktionaryParaphrase
from germanetpy.utils import convert_to_boolean

LEXID = 'lexUnitId'
ID = 'wiktionaryId'
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
long_description_content_type="text/markdown",
url="https://github.com/Blubberli/germanetpy.git",
install_requires=requirements,
packages=["scripts"],
packages=["germanetpy"],
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
Expand Down
8 changes: 4 additions & 4 deletions tests/test_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
import numpy as np
from lxml import etree as ET
import pytest
from scripts.germanet import Germanet
from scripts.filterconfig import Filterconfig
from scripts.lexunit import OrthFormVariant
from scripts.synset import WordCategory, WordClass
from germanetpy.germanet import Germanet
from germanetpy.filterconfig import Filterconfig
from germanetpy.lexunit import OrthFormVariant
from germanetpy.synset import WordCategory, WordClass

logger = logging.getLogger('logging_test_filter')
d = str(Path(__file__).parent.parent) + "/data"
Expand Down
2 changes: 1 addition & 1 deletion tests/test_frames.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import logging
from lxml import etree as ET
import numpy as np
from scripts.germanet import Germanet
from germanetpy.germanet import Germanet

logger = logging.getLogger('logging_test_frames')
d = str(Path(__file__).parent.parent) + "/data"
Expand Down
2 changes: 1 addition & 1 deletion tests/test_germanet.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import logging
import sys
from scripts.germanet import Germanet
from germanetpy.germanet import Germanet
from lxml import etree as ET
import numpy as np
from pathlib import Path
Expand Down
6 changes: 3 additions & 3 deletions tests/test_lexunit.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
import sys
import logging
import pytest
from scripts.germanet import Germanet
from germanetpy.germanet import Germanet
import numpy as np
from lxml import etree as ET
from scripts.lexunit import LexRel
from scripts.compoundInfo import CompoundProperty, CompoundCategory
from germanetpy.lexunit import LexRel
from germanetpy.compoundInfo import CompoundProperty, CompoundCategory

logger = logging.getLogger('logging_test_lexunit')
d = str(Path(__file__).parent.parent) + "/data"
Expand Down
4 changes: 2 additions & 2 deletions tests/test_synset.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
import sys
import logging
import pytest
from scripts.germanet import Germanet
from germanetpy.germanet import Germanet
import numpy as np
from lxml import etree as ET
from scripts.synset import ConRel
from germanetpy.synset import ConRel

logger = logging.getLogger('logging_test_synset')
d = str(Path(__file__).parent.parent) + "/data"
Expand Down

0 comments on commit d6c5b2c

Please sign in to comment.