Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for new sastadev package #9

Merged
merged 10 commits into from
Aug 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions mwe_query/lcat.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
phrasal node is generated for each (relevant) non-head single word.
"""

from sastatypes import SynTree
from treebankfunctions import getattval as gav, terminal, allcats as validcats, find1
from sastadev.sastatypes import SynTree
from sastadev.treebankfunctions import getattval as gav, terminal, allcats as validcats, find1
import copy
import lxml.etree as ET

Expand Down
46 changes: 34 additions & 12 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,26 +1,48 @@
#
# This file is autogenerated by pip-compile with python 3.7
# To update, run:
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile
#
alpino-query==2.1.9
alpino-query==2.1.10
# via mwe-query (setup.py)
auchann==0.1.1
# via sastadev
basexclient==8.4.4
# via mwe-query (setup.py)
certifi==2022.6.15
certifi==2023.7.22
# via requests
charset-normalizer==2.1.0
chamd==0.5.11
# via auchann
charset-normalizer==3.2.0
# via requests
idna==3.3
editdistance==0.6.2
# via auchann
et-xmlfile==1.1.0
# via openpyxl
idna==3.4
# via requests
lxml==4.9.1
# via alpino-query
requests==2.28.1
lxml==4.9.3
# via
# alpino-query
# sastadev
openpyxl==3.1.2
# via sastadev
pyyaml==6.0.1
# via pyyaml-include
pyyaml-include==1.3.1
# via auchann
requests==2.31.0
# via
# alpino-query
# mwe-query (setup.py)
sastadev==0.0.3
# via mwe-query (setup.py)
urllib3==1.26.11
sastadev==0.1.1
# via
# auchann
# mwe-query (setup.py)
typing-extensions==4.7.1
# via sastadev
urllib3==2.0.4
# via requests
xlsxwriter==3.1.2
# via sastadev
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
package_data={"mwe_query": ["py.typed"]},
zip_safe=True,
install_requires=[
'alpino-query>=2.1.8', 'requests', 'BaseXClient', 'sastadev>=0.0.3'
'alpino-query>=2.1.8', 'requests', 'BaseXClient', 'sastadev>=0.1.1'
],
entry_points={
'console_scripts': [
Expand Down
4 changes: 2 additions & 2 deletions tests/getlcat_test.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os
from collections import defaultdict
from treebankfunctions import getstree, getattval as gav
from sastadev.treebankfunctions import getstree, getattval as gav
from lcat import getlcat

properties = ['pt', 'positie', 'wvorm', 'frame', 'numtype', 'vwtype']
Expand Down Expand Up @@ -39,4 +39,4 @@ def testwholelassy():
print(f'Accuracy = {goodcount} / {counter} = {goodcount/counter*100}')

if __name__ == '__main__':
testwholelassy()
testwholelassy()
4 changes: 2 additions & 2 deletions tests/test_preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
import sys
import lxml.etree as ET
from difflib import context_diff
from treebankfunctions import getstree, getyield, indextransform, getyieldstr
from alpinoparsing import parse
from sastadev.treebankfunctions import getstree, getyield, indextransform, getyieldstr
from sastadev.alpinoparsing import parse
from mwe_query.lcat import expandnonheadwords


Expand Down