-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b511b07
commit c788169
Showing
13 changed files
with
62 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,26 @@ | ||
from termcolor import colored | ||
import logging | ||
import os | ||
from .benchmark import Benchmark # noqa | ||
from .angry_tweets import AngryTweetsBenchmark # noqa | ||
from .dane import DaneBenchmark # noqa | ||
from .dkhate import DkHateBenchmark # noqa | ||
from .europarl1 import Europarl1Benchmark # noqa | ||
from .europarl2 import Europarl2Benchmark # noqa | ||
from .lcc1 import Lcc1Benchmark # noqa | ||
from .lcc2 import Lcc2Benchmark # noqa | ||
from .twitter_sent import TwitterSentBenchmark # noqa | ||
from .utils import block_terminal_output | ||
|
||
__version__ = '0.0.0' # noqa | ||
|
||
# Block unwanted terminal outputs | ||
from .utils import block_terminal_output | ||
block_terminal_output() | ||
|
||
# Set up logging | ||
import logging | ||
from termcolor import colored | ||
format = colored('%(asctime)s [%(levelname)s] <%(name)s>\n↳ ', 'green') + \ | ||
colored('%(message)s', 'yellow') | ||
logging.basicConfig(level=logging.INFO, format=format) | ||
|
||
# Disable parallelisation when tokenizing, as that can lead to errors | ||
import os | ||
os.environ['TOKENIZERS_PARALLELISM'] = 'false' | ||
|
||
# Import benchmark classes | ||
from .benchmark import Benchmark # noqa | ||
from .angry_tweets import AngryTweetsBenchmark # noqa | ||
from .dane import DaneBenchmark # noqa | ||
from .dkhate import DkHateBenchmark # noqa | ||
from .europarl1 import Europarl1Benchmark # noqa | ||
from .europarl2 import Europarl2Benchmark # noqa | ||
from .lcc1 import Lcc1Benchmark # noqa | ||
from .lcc2 import Lcc2Benchmark # noqa | ||
from .twitter_sent import TwitterSentBenchmark # noqa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters