Skip to content

Commit

Permalink
Set license to GNU GPL3
Browse files Browse the repository at this point in the history
  • Loading branch information
fschncvg committed Oct 27, 2024
1 parent 897c459 commit 0e17862
Show file tree
Hide file tree
Showing 21 changed files with 532 additions and 2 deletions.
207 changes: 207 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ version = 0.5.0
description = A tool for stylistic device detection."
author = Felix Schneider
author_email = [email protected]
# license = GNU General Public License v3.0
# license_file = LICENSE
license = GNU General Public License v3.0
license_file = LICENSE
long_description = file: README.md
long_description_content_type = text/markdown
url = https://github.com/cvjena/freestylo
Expand Down
17 changes: 17 additions & 0 deletions src/freestylo/AlliterationAnnotation.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# FreeStylo
# A tool for the analysis of literary texts.
# Copyright (C) 2024 Felix Schneider
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

from freestylo.TextObject import TextObject

"""
Expand Down
17 changes: 17 additions & 0 deletions src/freestylo/ChiasmusAnnotation.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# FreeStylo
# A tool for the analysis of literary texts.
# Copyright (C) 2024 Felix Schneider
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

from freestylo.TextObject import TextObject
from freestylo.Configs import get_model_path
import numpy as np
Expand Down
17 changes: 17 additions & 0 deletions src/freestylo/Configs.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# FreeStylo
# A tool for the analysis of literary texts.
# Copyright (C) 2024 Felix Schneider
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

import os
import json
import wget
Expand Down
17 changes: 17 additions & 0 deletions src/freestylo/EpiphoraAnnotation.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@

# FreeStylo
# A tool for the analysis of literary texts.
# Copyright (C) 2024 Felix Schneider
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

from freestylo.TextObject import TextObject


Expand Down
17 changes: 17 additions & 0 deletions src/freestylo/MGHPreprocessor.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# FreeStylo
# A tool for the analysis of literary texts.
# Copyright (C) 2024 Felix Schneider
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

import cltk
import numpy as np
import fasttext
Expand Down
17 changes: 17 additions & 0 deletions src/freestylo/MetaphorAnnotation.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# FreeStylo
# A tool for the analysis of literary texts.
# Copyright (C) 2024 Felix Schneider
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

import numpy as np
import torch
import freestylo.SimilarityNN as SimilarityNN
Expand Down
16 changes: 16 additions & 0 deletions src/freestylo/PolysyndetonAnnotation.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# FreeStylo
# A tool for the analysis of literary texts.
# Copyright (C) 2024 Felix Schneider
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

from freestylo.TextObject import TextObject

Expand Down
18 changes: 18 additions & 0 deletions src/freestylo/SimilarityNN.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
# FreeStylo
# A tool for the analysis of literary texts.
# Copyright (C) 2024 Felix Schneider
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.


import torch.nn as nn
class SimilarityNN(nn.Module):
"""
Expand Down
17 changes: 17 additions & 0 deletions src/freestylo/TextObject.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# FreeStylo
# A tool for the analysis of literary texts.
# Copyright (C) 2024 Felix Schneider
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

import pickle
import json

Expand Down
17 changes: 17 additions & 0 deletions src/freestylo/TextPreprocessor.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# FreeStylo
# A tool for the analysis of literary texts.
# Copyright (C) 2024 Felix Schneider
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

import spacy
from freestylo.TextObject import TextObject
from freestylo.MGHPreprocessor import MGHPreprocessor
Expand Down
17 changes: 17 additions & 0 deletions src/freestylo/__main__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# FreeStylo
# A tool for the analysis of literary texts.
# Copyright (C) 2024 Felix Schneider
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

from freestylo.freestylo_main import main

if __name__ == '__main__':
Expand Down
17 changes: 17 additions & 0 deletions src/freestylo/freestylo_main.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# FreeStylo
# A tool for the analysis of literary texts.
# Copyright (C) 2024 Felix Schneider
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

import argparse
import json
import freestylo.ChiasmusAnnotation as ca
Expand Down
17 changes: 17 additions & 0 deletions src/freestylo/train_chiasmus_model.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# FreeStylo
# A tool for the analysis of literary texts.
# Copyright (C) 2024 Felix Schneider
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

import TextObject as to
import pickle
import os
Expand Down
17 changes: 17 additions & 0 deletions test/test_alliteration_annotation.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# FreeStylo
# A tool for the analysis of literary texts.
# Copyright (C) 2024 Felix Schneider
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

import numpy as np
import freestylo.TextObject as to
import freestylo.TextPreprocessor as tp
Expand Down
17 changes: 17 additions & 0 deletions test/test_chiasmus_annotation.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# FreeStylo
# A tool for the analysis of literary texts.
# Copyright (C) 2024 Felix Schneider
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

import freestylo.ChiasmusAnnotation as ca
import freestylo.TextObject as to
import freestylo.TextPreprocessor as tp
Expand Down
17 changes: 17 additions & 0 deletions test/test_epiphora_annotation.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# FreeStylo
# A tool for the analysis of literary texts.
# Copyright (C) 2024 Felix Schneider
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

import freestylo.TextObject as to
import freestylo.EpiphoraAnnotation as ea
import freestylo.TextPreprocessor as tp
Expand Down
17 changes: 17 additions & 0 deletions test/test_metaphor_annotations.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# FreeStylo
# A tool for the analysis of literary texts.
# Copyright (C) 2024 Felix Schneider
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

import freestylo.TextObject as to
import freestylo.MetaphorAnnotation as ma
import freestylo.TextPreprocessor as tp
Expand Down
17 changes: 17 additions & 0 deletions test/test_polysyndeton_annotation.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# FreeStylo
# A tool for the analysis of literary texts.
# Copyright (C) 2024 Felix Schneider
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

import freestylo.TextObject as to
import freestylo.PolysyndetonAnnotation as pa
import freestylo.TextPreprocessor as tp
Expand Down
Loading

0 comments on commit 0e17862

Please sign in to comment.