Changing file structure
This commit is contained in:
parent
c19c95ad97
commit
412d0c0f62
|
@ -1,9 +1,9 @@
|
||||||
from enum import Enum
|
from enum import Enum
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from restriction import Restriction
|
from luscenje_struktur.restriction import Restriction
|
||||||
from order import Order
|
from luscenje_struktur.order import Order
|
||||||
from representation_assigner import RepresentationAssigner
|
from luscenje_struktur.representation_assigner import RepresentationAssigner
|
||||||
|
|
||||||
|
|
||||||
class ComponentStatus(Enum):
|
class ComponentStatus(Enum):
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
from math import log2
|
from math import log2
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from component import ComponentType
|
from luscenje_struktur.component import ComponentType
|
||||||
|
|
||||||
|
|
||||||
class Formatter:
|
class Formatter:
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
from restriction import MorphologyRegex
|
from luscenje_struktur.restriction import MorphologyRegex
|
||||||
|
|
||||||
|
|
||||||
def get_lemma_features(et):
|
def get_lemma_features(et):
|
||||||
|
|
|
@ -6,8 +6,8 @@ import sys
|
||||||
import gzip
|
import gzip
|
||||||
import pathlib
|
import pathlib
|
||||||
|
|
||||||
from progress_bar import progress
|
from luscenje_struktur.progress_bar import progress
|
||||||
from word import Word
|
from luscenje_struktur.word import Word
|
||||||
|
|
||||||
|
|
||||||
def is_root_id(id_):
|
def is_root_id(id_):
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
from word import Word
|
from luscenje_struktur.word import Word
|
||||||
|
|
||||||
class StructureMatch:
|
class StructureMatch:
|
||||||
def __init__(self, match_id, structure):
|
def __init__(self, match_id, structure):
|
||||||
|
|
|
@ -3,9 +3,9 @@ from collections import defaultdict
|
||||||
from ast import literal_eval
|
from ast import literal_eval
|
||||||
from time import time
|
from time import time
|
||||||
|
|
||||||
from match import StructureMatch
|
from luscenje_struktur.match import StructureMatch
|
||||||
from representation_assigner import RepresentationAssigner
|
from luscenje_struktur.representation_assigner import RepresentationAssigner
|
||||||
from progress_bar import progress
|
from luscenje_struktur.progress_bar import progress
|
||||||
|
|
||||||
class MatchStore:
|
class MatchStore:
|
||||||
def __init__(self, args, db):
|
def __init__(self, args, db):
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from collections import Counter
|
from collections import Counter
|
||||||
from codes_tagset import TAGSET, CODES
|
from luscenje_struktur.codes_tagset import TAGSET, CODES
|
||||||
from word import WordMsdOnly
|
from luscenje_struktur.word import WordMsdOnly
|
||||||
|
|
||||||
from word import WordDummy
|
from luscenje_struktur.word import WordDummy
|
||||||
|
|
||||||
|
|
||||||
class ComponentRepresentation:
|
class ComponentRepresentation:
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
from representation import ComponentRepresentation, LemmaCR, LexisCR, WordFormAgreementCR, WordFormAnyCR, WordFormMsdCR, WordFormAllCR
|
from luscenje_struktur.representation import ComponentRepresentation, LemmaCR, LexisCR, WordFormAgreementCR, WordFormAnyCR, WordFormMsdCR, WordFormAllCR
|
||||||
|
|
||||||
class RepresentationAssigner:
|
class RepresentationAssigner:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import re
|
import re
|
||||||
from enum import Enum
|
from enum import Enum
|
||||||
|
|
||||||
from codes_tagset import CODES, TAGSET
|
from luscenje_struktur.codes_tagset import CODES, TAGSET
|
||||||
|
|
||||||
|
|
||||||
class RestrictionType(Enum):
|
class RestrictionType(Enum):
|
||||||
|
|
|
@ -7,7 +7,7 @@ from sqlalchemy.ext.declarative import declarative_base
|
||||||
from sqlalchemy.orm import Session, aliased
|
from sqlalchemy.orm import Session, aliased
|
||||||
from sqlalchemy import create_engine
|
from sqlalchemy import create_engine
|
||||||
|
|
||||||
from codes_tagset import TAGSET, CODES, CODES_TRANSLATION, POSSIBLE_WORD_FORM_FEATURE_VALUES
|
from luscenje_struktur.codes_tagset import TAGSET, CODES, CODES_TRANSLATION, POSSIBLE_WORD_FORM_FEATURE_VALUES
|
||||||
|
|
||||||
|
|
||||||
class SloleksDatabase:
|
class SloleksDatabase:
|
||||||
|
|
|
@ -2,8 +2,8 @@ from xml.etree import ElementTree
|
||||||
import logging
|
import logging
|
||||||
import pickle
|
import pickle
|
||||||
|
|
||||||
from component import Component, ComponentType
|
from luscenje_struktur.component import Component, ComponentType
|
||||||
from lemma_features import get_lemma_features
|
from luscenje_struktur.lemma_features import get_lemma_features
|
||||||
|
|
||||||
class SyntacticStructure:
|
class SyntacticStructure:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|
|
@ -10,18 +10,18 @@ import subprocess
|
||||||
import concurrent.futures
|
import concurrent.futures
|
||||||
import tempfile
|
import tempfile
|
||||||
|
|
||||||
from progress_bar import progress
|
from luscenje_struktur.progress_bar import progress
|
||||||
from sloleks_db import SloleksDatabase
|
from luscenje_struktur.sloleks_db import SloleksDatabase
|
||||||
from word import Word
|
from luscenje_struktur.word import Word
|
||||||
from syntactic_structure import build_structures
|
from luscenje_struktur.syntactic_structure import build_structures
|
||||||
from match_store import MatchStore
|
from luscenje_struktur.match_store import MatchStore
|
||||||
from word_stats import WordStats
|
from luscenje_struktur.word_stats import WordStats
|
||||||
from writer import Writer
|
from luscenje_struktur.writer import Writer
|
||||||
from loader import load_files
|
from luscenje_struktur.loader import load_files
|
||||||
from database import Database
|
from luscenje_struktur.database import Database
|
||||||
from time_info import TimeInfo
|
from luscenje_struktur.time_info import TimeInfo
|
||||||
|
|
||||||
from postprocessor import Postprocessor
|
from luscenje_struktur.postprocessor import Postprocessor
|
||||||
|
|
||||||
|
|
||||||
def match_file(words, structures, postprocessor):
|
def match_file(words, structures, postprocessor):
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from msd_translate import MSD_TRANSLATE
|
from luscenje_struktur.msd_translate import MSD_TRANSLATE
|
||||||
|
|
||||||
|
|
||||||
class WordCompressed:
|
class WordCompressed:
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
from collections import defaultdict, Counter
|
from collections import defaultdict, Counter
|
||||||
|
|
||||||
from progress_bar import progress
|
from luscenje_struktur.progress_bar import progress
|
||||||
|
|
||||||
|
|
||||||
class WordStats:
|
class WordStats:
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from progress_bar import progress
|
from luscenje_struktur.progress_bar import progress
|
||||||
|
|
||||||
from formatter import OutFormatter, OutNoStatFormatter, AllFormatter, StatsFormatter
|
from luscenje_struktur.formatter import OutFormatter, OutNoStatFormatter, AllFormatter, StatsFormatter
|
||||||
|
|
||||||
from collocation_sentence_mapper import CollocationSentenceMapper
|
from luscenje_struktur.collocation_sentence_mapper import CollocationSentenceMapper
|
||||||
|
|
||||||
|
|
||||||
class Writer:
|
class Writer:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user