Skip to content

Commit

Permalink
020: Project restructuring
Browse files Browse the repository at this point in the history
  • Loading branch information
TharinduDR committed Jun 16, 2022
1 parent 40cf855 commit 40d5a3c
Show file tree
Hide file tree
Showing 14 changed files with 25 additions and 25 deletions.
18 changes: 9 additions & 9 deletions examples/english/sick/run_experiment.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import pandas as pd

from examples.evaluation import pearson_corr, spearman_corr, rmse
from simple_sts.algo.cls import TransformerCLSSTSMethod
from simple_sts.algo.labse import LaBSESTSMethod
from simple_sts.algo.laser import LASERSTSMethod
from simple_sts.algo.sbert import SentenceTransformerSTSMethod
from simple_sts.algo.sif import WordEmbeddingSIFSTSMethod
from simple_sts.algo.use import UniversalSentenceEncoderSTSMethod
from simple_sts.algo.wmd import WordMoversDistanceSTSMethod
from simple_sts.algo.word_avg import WordEmbeddingAverageSTSMethod
from simple_sts.model_args import WordEmbeddingSTSArgs, SentenceEmbeddingSTSArgs
from simplests.algo.cls import TransformerCLSSTSMethod
from simplests.algo.labse import LaBSESTSMethod
from simplests.algo.laser import LASERSTSMethod
from simplests.algo.sbert import SentenceTransformerSTSMethod
from simplests.algo.sif import WordEmbeddingSIFSTSMethod
from simplests.algo.use import UniversalSentenceEncoderSTSMethod
from simplests.algo.wmd import WordMoversDistanceSTSMethod
from simplests.algo.word_avg import WordEmbeddingAverageSTSMethod
from simplests.model_args import WordEmbeddingSTSArgs, SentenceEmbeddingSTSArgs

sick_test = pd.read_csv("examples/english/sick/data/SICK_test_annotated.txt", sep="\t")

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
long_description = fh.read()

setup(
name="simple_sts",
name="simplests",
version="2.0.0",
author="Tharindu Ranasinghe",
author_email="[email protected]",
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions simple_sts/algo/cls.py → simplests/algo/cls.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
from numpy.linalg import norm
from tqdm import tqdm

from simple_sts.model_args import SentenceEmbeddingSTSArgs
from simple_sts.util import batch
from simplests.model_args import SentenceEmbeddingSTSArgs
from simplests.util import batch

logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
Expand Down
4 changes: 2 additions & 2 deletions simple_sts/algo/labse.py → simplests/algo/labse.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
import tensorflow as tf
from tqdm import tqdm

from simple_sts.model_args import SentenceEmbeddingSTSArgs
from simple_sts.util import batch
from simplests.model_args import SentenceEmbeddingSTSArgs
from simplests.util import batch

logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
Expand Down
4 changes: 2 additions & 2 deletions simple_sts/algo/laser.py → simplests/algo/laser.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
from tqdm import tqdm
from numpy.linalg import norm
import numpy as np
from simple_sts.util import batch
from simplests.util import batch

from simple_sts.model_args import SentenceEmbeddingSTSArgs
from simplests.model_args import SentenceEmbeddingSTSArgs

logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
Expand Down
2 changes: 1 addition & 1 deletion simple_sts/algo/sbert.py → simplests/algo/sbert.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from sentence_transformers import SentenceTransformer
from tqdm import tqdm

from simple_sts.model_args import SentenceEmbeddingSTSArgs
from simplests.model_args import SentenceEmbeddingSTSArgs

logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
Expand Down
4 changes: 2 additions & 2 deletions simple_sts/algo/sif.py → simplests/algo/sif.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
from tqdm import tqdm
from sklearn.decomposition import TruncatedSVD

from simple_sts.model_args import WordEmbeddingSTSArgs
from simple_sts.util import batch
from simplests.model_args import WordEmbeddingSTSArgs
from simplests.util import batch
from stop_words import get_stop_words

logging.basicConfig(level=logging.INFO)
Expand Down
4 changes: 2 additions & 2 deletions simple_sts/algo/use.py → simplests/algo/use.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import tensorflow_hub as hub
from tqdm import tqdm

from simple_sts.model_args import SentenceEmbeddingSTSArgs
from simple_sts.util import batch
from simplests.model_args import SentenceEmbeddingSTSArgs
from simplests.util import batch

logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
Expand Down
4 changes: 2 additions & 2 deletions simple_sts/algo/wmd.py → simplests/algo/wmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
from tqdm import tqdm
import math

from simple_sts.model_args import WordEmbeddingSTSArgs
from simple_sts.util import batch
from simplests.model_args import WordEmbeddingSTSArgs
from simplests.util import batch
from stop_words import get_stop_words
from gensim.corpora.dictionary import Dictionary

Expand Down
4 changes: 2 additions & 2 deletions simple_sts/algo/word_avg.py → simplests/algo/word_avg.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
from numpy.linalg import norm
from tqdm import tqdm

from simple_sts.model_args import WordEmbeddingSTSArgs
from simple_sts.util import batch
from simplests.model_args import WordEmbeddingSTSArgs
from simplests.util import batch
from stop_words import get_stop_words

logging.basicConfig(level=logging.INFO)
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 40d5a3c

Please sign in to comment.