Skip to content

Commit

Permalink
Included license and removed some unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
moncho-mendez committed Jul 9, 2019
1 parent 3f18f58 commit 5eb4edb
Show file tree
Hide file tree
Showing 70 changed files with 1,470 additions and 102 deletions.
19 changes: 19 additions & 0 deletions config/configurations.ini.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
; NLPA
;
; Copyright (C) 2018 - 2019 SING Group (University of Vigo)
;
; 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
;<http://www.gnu.org/licenses/gpl-3.0.html>.
;

[twitter]
ConsumerKey = your_ConsumerKey
ConsumerSecret = your_ConsumerSecret
Expand Down
20 changes: 20 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>

<!--
NLPA
Copyright (C) 2018 - 2019 SING Group (University of Vigo)
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
<http://www.gnu.org/licenses/gpl-3.0.html>.
-->

<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
Expand Down
18 changes: 18 additions & 0 deletions scripts/run-textblob-ws.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
#!/bin/bash

# NLPA
#
# Copyright (C) 2018 - 2019 SING Group (University of Vigo)
#
# 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
# <http://www.gnu.org/licenses/gpl-3.0.html>.

# This script run textblow webservice (textblob-ws) that is useful to compute polarity
# The service is required to run ComputePolarityTBWSFromStringBufferPipe
# This software has been developed by Enaitz Ezpeleta (Mondragon Unibertsitatea)
Expand Down
18 changes: 18 additions & 0 deletions scripts/textblob-ws/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
# NLPA
#
# Copyright (C) 2018 - 2019 SING Group (University of Vigo)
#
# 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
# <http://www.gnu.org/licenses/gpl-3.0.html>.

FROM debian:9

MAINTAINER Enaitz Ezpeleta (Mondragon Unibertsitatea)
Expand Down
18 changes: 18 additions & 0 deletions scripts/textblob-ws/app.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
#!flask/bin/python

# NLPA
#
# Copyright (C) 2018 - 2019 SING Group (University of Vigo)
#
# 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
# <http://www.gnu.org/licenses/gpl-3.0.html>.

#Author: Enaitz Ezpeleta (Mondragon Unibertsitatea)

from flask import Flask
Expand Down
19 changes: 19 additions & 0 deletions scripts/transform-smsspamcollection.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
#!/bin/bash

# NLPA
#
# Copyright (C) 2018 - 2019 SING Group (University of Vigo)
#
# 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
# <http://www.gnu.org/licenses/gpl-3.0.html>.

# This script extracts the messages contained in smsspamcollection corpus
# from the original file (smsspamcollection.zip) that can be
# downloaded from http://www.dt.fee.unicamp.br/~tiago/smsspamcollection/
Expand Down
19 changes: 19 additions & 0 deletions scripts/transform-spamassasin.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
#!/bin/bash

# NLPA
#
# Copyright (C) 2018 - 2019 SING Group (University of Vigo)
#
# 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
# <http://www.gnu.org/licenses/gpl-3.0.html>.

# This script extracts the messages contained in spamAssassin corpus
# from the raw files included in the tarballs (tar.bz2) that can be
# downloaded from https://spamassassin.apache.org/old/publiccorpus/
Expand Down
19 changes: 19 additions & 0 deletions scripts/transform-trec2007.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
#!/bin/bash

# NLPA
#
# Copyright (C) 2018 - 2019 SING Group (University of Vigo)
#
# 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
# <http://www.gnu.org/licenses/gpl-3.0.html>.

# This script extracts the messages contained in TREC 2007 spam corpus
# from the raw files included in the tarball (tar.gz) that can be
# downloaded from http://plg.uwaterloo.ca/~gvcormac/treccorpus07/
Expand Down
19 changes: 19 additions & 0 deletions scripts/transform-youtube-uci-ml.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
#!/bin/bash

# NLPA
#
# Copyright (C) 2018 - 2019 SING Group (University of Vigo)
#
# 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
# <http://www.gnu.org/licenses/gpl-3.0.html>.

# This script generates the ytbid files for the Youtube dataset included
# in UCI ML Repository. Ham files are included in _ham_ subfolder
# while spam files are included in a _spam_ subfolder
Expand Down
22 changes: 21 additions & 1 deletion src/main/java/org/nlpa/Main.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
/*-
* #%L
* NLPA
* %%
* Copyright (C) 2018 - 2019 SING Group (University of Vigo)
* %%
* 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
* <http://www.gnu.org/licenses/gpl-3.0.html>.
* #L%
*/
package org.nlpa;

import org.apache.logging.log4j.LogManager;
Expand All @@ -17,7 +38,6 @@
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.List;
//import weka.core.converters.ConverterUtils.DataSource;

/**
* Main class for SKI4Spam project
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
/*-
* #%L
* NLPA
* %%
* Copyright (C) 2018 - 2019 SING Group (University of Vigo)
* %%
* 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
* <http://www.gnu.org/licenses/gpl-3.0.html>.
* #L%
*/

package org.nlpa.pipe.impl;

import com.google.auto.service.AutoService;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
/*-
* #%L
* NLPA
* %%
* Copyright (C) 2018 - 2019 SING Group (University of Vigo)
* %%
* 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
* <http://www.gnu.org/licenses/gpl-3.0.html>.
* #L%
*/
package org.nlpa.pipe.impl;

import com.google.auto.service.AutoService;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
/*-
* #%L
* NLPA
* %%
* Copyright (C) 2018 - 2019 SING Group (University of Vigo)
* %%
* 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
* <http://www.gnu.org/licenses/gpl-3.0.html>.
* #L%
*/

package org.nlpa.pipe.impl;

import com.google.auto.service.AutoService;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
/*-
* #%L
* NLPA
* %%
* Copyright (C) 2018 - 2019 SING Group (University of Vigo)
* %%
* 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
* <http://www.gnu.org/licenses/gpl-3.0.html>.
* #L%
*/

package org.nlpa.pipe.impl;

import com.google.auto.service.AutoService;
Expand Down
22 changes: 22 additions & 0 deletions src/main/java/org/nlpa/pipe/impl/File2StringBufferPipe.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
/*-
* #%L
* NLPA
* %%
* Copyright (C) 2018 - 2019 SING Group (University of Vigo)
* %%
* 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
* <http://www.gnu.org/licenses/gpl-3.0.html>.
* #L%
*/

package org.nlpa.pipe.impl;

import org.nlpa.util.textextractor.TextExtractor;
Expand Down
Loading

0 comments on commit 5eb4edb

Please sign in to comment.