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
Changes from 5 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
@@ -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

2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@ requests==2.28.1
# via
# alpino-query
# mwe-query (setup.py)
sastadev==0.0.3
-e git+https://github.com/UUDigitalHumanitieslab/sastadev@feature/packaging#egg=sastadev
bbonf marked this conversation as resolved.
Show resolved Hide resolved
# via mwe-query (setup.py)
urllib3==1.26.11
# via requests
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']
@@ -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
@@ -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