repo
stringlengths
7
90
file_url
stringlengths
81
315
file_path
stringlengths
4
228
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 14:38:15
2026-01-05 02:33:18
truncated
bool
2 classes
hpthreatresearch/subcrawl
https://github.com/hpthreatresearch/subcrawl/blob/54e4f79cfe428c97f6e959112bf8dea9ce4922d6/crawler/service.py
crawler/service.py
# © Copyright 2021 HP Development Company, L.P. import io import logging import os import sys from datetime import datetime, timedelta import yaml from timeloop import Timeloop from utils import SubCrawlColors, SubCrawlHelpers from utils import check_topic # check if kafka topic exists and create if needed check_topi...
python
MIT
54e4f79cfe428c97f6e959112bf8dea9ce4922d6
2026-01-05T07:09:22.940535Z
false
hpthreatresearch/subcrawl
https://github.com/hpthreatresearch/subcrawl/blob/54e4f79cfe428c97f6e959112bf8dea9ce4922d6/crawler/storage/misp_storage.py
crawler/storage/misp_storage.py
# © Copyright 2021 HP Development Company, L.P. import csv import io import logging from io import StringIO from urllib.parse import urlparse import requests from pymisp import ExpandedPyMISP, MISPAttribute, MISPEvent, MISPObject from utils import SubCrawlColors, SubCrawlHelpers from .default_storage import DefaultSto...
python
MIT
54e4f79cfe428c97f6e959112bf8dea9ce4922d6
2026-01-05T07:09:22.940535Z
false
hpthreatresearch/subcrawl
https://github.com/hpthreatresearch/subcrawl/blob/54e4f79cfe428c97f6e959112bf8dea9ce4922d6/crawler/storage/__init__.py
crawler/storage/__init__.py
# © Copyright 2021 HP Development Company, L.P. from .console_storage import ConsoleStorage from .misp_storage import MISPStorage from .sqlite_storage import SqliteStorage from .elastic_storage import ElasticStorage
python
MIT
54e4f79cfe428c97f6e959112bf8dea9ce4922d6
2026-01-05T07:09:22.940535Z
false
hpthreatresearch/subcrawl
https://github.com/hpthreatresearch/subcrawl/blob/54e4f79cfe428c97f6e959112bf8dea9ce4922d6/crawler/storage/console_storage.py
crawler/storage/console_storage.py
# © Copyright 2021 HP Development Company, L.P. import json import pprint from re import subn from utils import SubCrawlColors from .default_storage import DefaultStorage class ConsoleStorage(DefaultStorage): cfg = None logger = None def __init__(self, config, logger): self.cfg = config ...
python
MIT
54e4f79cfe428c97f6e959112bf8dea9ce4922d6
2026-01-05T07:09:22.940535Z
false
hpthreatresearch/subcrawl
https://github.com/hpthreatresearch/subcrawl/blob/54e4f79cfe428c97f6e959112bf8dea9ce4922d6/crawler/storage/example_storage.py
crawler/storage/example_storage.py
# © Copyright 2021 HP Development Company, L.P. import json import pprint from re import subn from utils import SubCrawlColors from .default_storage import DefaultStorage class ExampleStorage(DefaultStorage): cfg = None logger = None def __init__(self, config, logger): self.cfg = config ...
python
MIT
54e4f79cfe428c97f6e959112bf8dea9ce4922d6
2026-01-05T07:09:22.940535Z
false
hpthreatresearch/subcrawl
https://github.com/hpthreatresearch/subcrawl/blob/54e4f79cfe428c97f6e959112bf8dea9ce4922d6/crawler/storage/elastic_storage.py
crawler/storage/elastic_storage.py
# © Copyright 2021 HP Development Company, L.P. import os import zipfile import io from datetime import datetime from urllib.parse import urlparse from re import subn from elasticsearch import Elasticsearch, helpers from utils import SubCrawlColors, SubCrawlHelpers from .default_storage import DefaultStorage class E...
python
MIT
54e4f79cfe428c97f6e959112bf8dea9ce4922d6
2026-01-05T07:09:22.940535Z
false
hpthreatresearch/subcrawl
https://github.com/hpthreatresearch/subcrawl/blob/54e4f79cfe428c97f6e959112bf8dea9ce4922d6/crawler/storage/default_storage.py
crawler/storage/default_storage.py
# © Copyright 2021 HP Development Company, L.P. class DefaultStorage: cfg = None logger = None def __init__(self, config, logger): self.cfg = config self.logger = logger def load_scraped_domains(self): return [] def store_result(self, result_data): return True
python
MIT
54e4f79cfe428c97f6e959112bf8dea9ce4922d6
2026-01-05T07:09:22.940535Z
false
hpthreatresearch/subcrawl
https://github.com/hpthreatresearch/subcrawl/blob/54e4f79cfe428c97f6e959112bf8dea9ce4922d6/crawler/storage/sqlite_storage.py
crawler/storage/sqlite_storage.py
# © Copyright 2021 HP Development Company, L.P. import csv import io import logging from io import StringIO from urllib.parse import urlparse import requests from utils import Domain, DomainTag, Extension, Tag, Url, db, fn from utils import SubCrawlColors, SubCrawlHelpers from .default_storage import DefaultStorage ...
python
MIT
54e4f79cfe428c97f6e959112bf8dea9ce4922d6
2026-01-05T07:09:22.940535Z
false
hpthreatresearch/subcrawl
https://github.com/hpthreatresearch/subcrawl/blob/54e4f79cfe428c97f6e959112bf8dea9ce4922d6/crawler/app/main.py
crawler/app/main.py
# © Copyright 2021 HP Development Company, L.P. import os import falcon from jinja2 import Environment, FileSystemLoader from utils import db, Domain, Url, Extension, Tag, DomainTag, fn db.connect() if len(db.get_tables()) == 0: db.create_tables([Domain, Url, Extension, Tag, DomainTag]) colors = ["orange", "yello...
python
MIT
54e4f79cfe428c97f6e959112bf8dea9ce4922d6
2026-01-05T07:09:22.940535Z
false
hpthreatresearch/subcrawl
https://github.com/hpthreatresearch/subcrawl/blob/54e4f79cfe428c97f6e959112bf8dea9ce4922d6/crawler/processing/sdhash_processing.py
crawler/processing/sdhash_processing.py
# © Copyright 2021 HP Development Company, L.P. ##### # Probably not the easiest module to install. Needs protobuf-2.5.0 and python3.6 and of course sdhash # # Protobuf installation: # > apt-get update # > apt-get -y install libssl-dev libevent-pthreads-2.1-6 libomp-dev g++ # > apt-get -y install autoconf automake libt...
python
MIT
54e4f79cfe428c97f6e959112bf8dea9ce4922d6
2026-01-05T07:09:22.940535Z
false
hpthreatresearch/subcrawl
https://github.com/hpthreatresearch/subcrawl/blob/54e4f79cfe428c97f6e959112bf8dea9ce4922d6/crawler/processing/clamav_processing.py
crawler/processing/clamav_processing.py
# © Copyright 2021 HP Development Company, L.P. import hashlib from io import BytesIO import clamd from .default_processing import DefaultProcessing from utils import SubCrawlColors, SubCrawlHelpers # Installation ClamAV for this Module # sudo apt-get install clamav-daemon clamav-freshclam clamav-unofficial-sigs # s...
python
MIT
54e4f79cfe428c97f6e959112bf8dea9ce4922d6
2026-01-05T07:09:22.940535Z
false
hpthreatresearch/subcrawl
https://github.com/hpthreatresearch/subcrawl/blob/54e4f79cfe428c97f6e959112bf8dea9ce4922d6/crawler/processing/payload_processing.py
crawler/processing/payload_processing.py
# © Copyright 2021 HP Development Company, L.P. import hashlib import os import magic from utils import SubCrawlColors, SubCrawlHelpers from .default_processing import DefaultProcessing class PayloadProcessing(DefaultProcessing): cfg = None logger = None def __init__(self, config, logger): self...
python
MIT
54e4f79cfe428c97f6e959112bf8dea9ce4922d6
2026-01-05T07:09:22.940535Z
false
hpthreatresearch/subcrawl
https://github.com/hpthreatresearch/subcrawl/blob/54e4f79cfe428c97f6e959112bf8dea9ce4922d6/crawler/processing/example_processing.py
crawler/processing/example_processing.py
# © Copyright 2021 HP Development Company, L.P. from .default_processing import DefaultProcessing class ExampleProcessing(DefaultProcessing): cfg = None logger = None def __init__(self, config, logger): self.cfg = config self.logger = logger def process(self, url, resp): pas...
python
MIT
54e4f79cfe428c97f6e959112bf8dea9ce4922d6
2026-01-05T07:09:22.940535Z
false
hpthreatresearch/subcrawl
https://github.com/hpthreatresearch/subcrawl/blob/54e4f79cfe428c97f6e959112bf8dea9ce4922d6/crawler/processing/tlsh_processing.py
crawler/processing/tlsh_processing.py
# © Copyright 2021 HP Development Company, L.P. from .default_processing import DefaultProcessing import tlsh class TLSHProcessing(DefaultProcessing): cfg = None logger = None def __init__(self, config, logger): self.cfg = config self.logger = logger def process(self, url, content):...
python
MIT
54e4f79cfe428c97f6e959112bf8dea9ce4922d6
2026-01-05T07:09:22.940535Z
false
hpthreatresearch/subcrawl
https://github.com/hpthreatresearch/subcrawl/blob/54e4f79cfe428c97f6e959112bf8dea9ce4922d6/crawler/processing/yara_processing.py
crawler/processing/yara_processing.py
# © Copyright 2021 HP Development Company, L.P. import hashlib import yara from utils import SubCrawlColors, SubCrawlHelpers from .default_processing import DefaultProcessing class YARAProcessing(DefaultProcessing): cfg = None rules = None logger = None def __init__(self, config, logger): s...
python
MIT
54e4f79cfe428c97f6e959112bf8dea9ce4922d6
2026-01-05T07:09:22.940535Z
false
hpthreatresearch/subcrawl
https://github.com/hpthreatresearch/subcrawl/blob/54e4f79cfe428c97f6e959112bf8dea9ce4922d6/crawler/processing/jarm_processing.py
crawler/processing/jarm_processing.py
# © Copyright 2021 HP Development Company, L.P. from urllib.parse import urlparse from jarm.scanner.scanner import Scanner from .default_processing import DefaultProcessing import requests class JARMProcessing(DefaultProcessing): cfg = None logger = None def __init__(self, config, logger): self....
python
MIT
54e4f79cfe428c97f6e959112bf8dea9ce4922d6
2026-01-05T07:09:22.940535Z
false
hpthreatresearch/subcrawl
https://github.com/hpthreatresearch/subcrawl/blob/54e4f79cfe428c97f6e959112bf8dea9ce4922d6/crawler/processing/default_processing.py
crawler/processing/default_processing.py
# © Copyright 2021 HP Development Company, L.P. class DefaultProcessing: cfg = None logger = None def __init__(self, config, logger): self.cfg = config self.logger = logger def process(self, url, resp): pass
python
MIT
54e4f79cfe428c97f6e959112bf8dea9ce4922d6
2026-01-05T07:09:22.940535Z
false
hpthreatresearch/subcrawl
https://github.com/hpthreatresearch/subcrawl/blob/54e4f79cfe428c97f6e959112bf8dea9ce4922d6/crawler/processing/__init__.py
crawler/processing/__init__.py
# © Copyright 2021 HP Development Company, L.P. from .payload_processing import PayloadProcessing from .yara_processing import YARAProcessing from .clamav_processing import ClamAVProcessing from .jarm_processing import JARMProcessing from .tlsh_processing import TLSHProcessing #from .sdhash_processing import SDhashProc...
python
MIT
54e4f79cfe428c97f6e959112bf8dea9ce4922d6
2026-01-05T07:09:22.940535Z
false
hpthreatresearch/subcrawl
https://github.com/hpthreatresearch/subcrawl/blob/54e4f79cfe428c97f6e959112bf8dea9ce4922d6/crawler/processing/minisdhash/sdbf_class.py
crawler/processing/minisdhash/sdbf_class.py
# This file was automatically generated by SWIG (http://www.swig.org). # Version 3.0.12 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info as _swig_python_version_info if _swig_python_version_info >= (2, 7, 0): def swig_im...
python
MIT
54e4f79cfe428c97f6e959112bf8dea9ce4922d6
2026-01-05T07:09:22.940535Z
false
hpthreatresearch/subcrawl
https://github.com/hpthreatresearch/subcrawl/blob/54e4f79cfe428c97f6e959112bf8dea9ce4922d6/crawler/utils/sqlite_model.py
crawler/utils/sqlite_model.py
# © Copyright 2021 HP Development Company, L.P. import os from peewee import * from playhouse.hybrid import hybrid_property import datetime db = SqliteDatabase('utils/subcrawl.db') class BaseModel(Model): class Meta: database = db class Domain(BaseModel): name = CharField(unique=True) descripti...
python
MIT
54e4f79cfe428c97f6e959112bf8dea9ce4922d6
2026-01-05T07:09:22.940535Z
false
hpthreatresearch/subcrawl
https://github.com/hpthreatresearch/subcrawl/blob/54e4f79cfe428c97f6e959112bf8dea9ce4922d6/crawler/utils/setup_kafka_topic.py
crawler/utils/setup_kafka_topic.py
# © Copyright 2021 HP Development Company, L.P. from kafka.admin import KafkaAdminClient, NewTopic def check_topic(): admin_client = KafkaAdminClient( bootstrap_servers="kafka:9092", client_id='test' ) if "urls" not in admin_client.list_topics(): topic_list = [] topic_list....
python
MIT
54e4f79cfe428c97f6e959112bf8dea9ce4922d6
2026-01-05T07:09:22.940535Z
false
hpthreatresearch/subcrawl
https://github.com/hpthreatresearch/subcrawl/blob/54e4f79cfe428c97f6e959112bf8dea9ce4922d6/crawler/utils/banner.py
crawler/utils/banner.py
# © Copyright 2021 HP Development Company, L.P. import os import random import sys class SubCrawlBanner(): logo_path = "" tag_line = "" logos = [] def __init__(self, logopath, tagline): self.logo_path = logopath self.tag_line = tagline for logo in os.listdir(self.logo_path): ...
python
MIT
54e4f79cfe428c97f6e959112bf8dea9ce4922d6
2026-01-05T07:09:22.940535Z
false
hpthreatresearch/subcrawl
https://github.com/hpthreatresearch/subcrawl/blob/54e4f79cfe428c97f6e959112bf8dea9ce4922d6/crawler/utils/ansi_colors.py
crawler/utils/ansi_colors.py
# © Copyright 2021 HP Development Company, L.P. class SubCrawlColors: BLUE = '\033[34m' GREEN = '\033[32m' PURPLE = '\033[35m' YELLOW = '\033[33m' RED = '\033[31m' CYAN = '\033[36m' RESET = '\033[0m' CLS = '\033[2J'
python
MIT
54e4f79cfe428c97f6e959112bf8dea9ce4922d6
2026-01-05T07:09:22.940535Z
false
hpthreatresearch/subcrawl
https://github.com/hpthreatresearch/subcrawl/blob/54e4f79cfe428c97f6e959112bf8dea9ce4922d6/crawler/utils/logger.py
crawler/utils/logger.py
# © Copyright 2021 HP Development Company, L.P. # source: https://www.toptal.com/python/in-depth-python-logging import logging import sys import enum from logging.handlers import TimedRotatingFileHandler from utils.ansi_colors import SubCrawlColors class SubCrawlLogger(): formatter = None log_file = "" ...
python
MIT
54e4f79cfe428c97f6e959112bf8dea9ce4922d6
2026-01-05T07:09:22.940535Z
false
hpthreatresearch/subcrawl
https://github.com/hpthreatresearch/subcrawl/blob/54e4f79cfe428c97f6e959112bf8dea9ce4922d6/crawler/utils/helpers.py
crawler/utils/helpers.py
# © Copyright 2021 HP Development Company, L.P. import hashlib import re import sys # Source: https://codereview.stackexchange.com/questions/19663/http-url-validating valid_url = re.compile( r'^(?:http|ftp)s?://' # http:// or https:// r'(?:(?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\.)+(?:[A-Z]{2,6}\.?|[A-Z0-9-]{...
python
MIT
54e4f79cfe428c97f6e959112bf8dea9ce4922d6
2026-01-05T07:09:22.940535Z
false
hpthreatresearch/subcrawl
https://github.com/hpthreatresearch/subcrawl/blob/54e4f79cfe428c97f6e959112bf8dea9ce4922d6/crawler/utils/__init__.py
crawler/utils/__init__.py
# © Copyright 2021 HP Development Company, L.P. from utils.logger import SubCrawlLogger, SubCrawlLoggerLevels from utils.banner import SubCrawlBanner from utils.sqlite_model import * from utils.setup_kafka_topic import check_topic from utils.ansi_colors import SubCrawlColors from utils.helpers import SubCrawlHelpers
python
MIT
54e4f79cfe428c97f6e959112bf8dea9ce4922d6
2026-01-05T07:09:22.940535Z
false
hpthreatresearch/subcrawl
https://github.com/hpthreatresearch/subcrawl/blob/54e4f79cfe428c97f6e959112bf8dea9ce4922d6/crawler/input/urlhaus.py
crawler/input/urlhaus.py
# © Copyright 2021 HP Development Company, L.P. import csv import io import logging import os import sys from datetime import datetime, timedelta from json import dumps, loads import requests from kafka import KafkaConsumer, KafkaProducer from timeloop import Timeloop producer = KafkaProducer(bootstrap_servers=['kafk...
python
MIT
54e4f79cfe428c97f6e959112bf8dea9ce4922d6
2026-01-05T07:09:22.940535Z
false
hpthreatresearch/subcrawl
https://github.com/hpthreatresearch/subcrawl/blob/54e4f79cfe428c97f6e959112bf8dea9ce4922d6/crawler/input/phishtank.py
crawler/input/phishtank.py
# © Copyright 2021 HP Development Company, L.P. import csv import io import logging import os import sys from datetime import datetime, timedelta from json import dumps, loads import requests from kafka import KafkaConsumer, KafkaProducer from timeloop import Timeloop producer = KafkaProducer(bootstrap_servers=['kafk...
python
MIT
54e4f79cfe428c97f6e959112bf8dea9ce4922d6
2026-01-05T07:09:22.940535Z
false
hpthreatresearch/subcrawl
https://github.com/hpthreatresearch/subcrawl/blob/54e4f79cfe428c97f6e959112bf8dea9ce4922d6/analysis/webserver_analysis.py
analysis/webserver_analysis.py
# © Copyright 2021 HP Development Company, L.P. from pymisp import ExpandedPyMISP, MISPEvent, MISPAttribute, MISPObject from requests.packages.urllib3.exceptions import InsecureRequestWarning import requests, logging import matplotlib.pyplot as plt requests.packages.urllib3.disable_warnings(InsecureRequestWarning) log...
python
MIT
54e4f79cfe428c97f6e959112bf8dea9ce4922d6
2026-01-05T07:09:22.940535Z
false
hpthreatresearch/subcrawl
https://github.com/hpthreatresearch/subcrawl/blob/54e4f79cfe428c97f6e959112bf8dea9ce4922d6/analysis/tlsh_analysis.py
analysis/tlsh_analysis.py
# © Copyright 2021 HP Development Company, L.P. from pymisp import ExpandedPyMISP, MISPEvent, MISPAttribute, MISPObject from requests.packages.urllib3.exceptions import InsecureRequestWarning import numpy as np import matplotlib.pyplot as plt import matplotlib.patches as mpatches import requests, logging, tlsh, subproc...
python
MIT
54e4f79cfe428c97f6e959112bf8dea9ce4922d6
2026-01-05T07:09:22.940535Z
false
hpthreatresearch/subcrawl
https://github.com/hpthreatresearch/subcrawl/blob/54e4f79cfe428c97f6e959112bf8dea9ce4922d6/analysis/url_analysis.py
analysis/url_analysis.py
# © Copyright 2021 HP Development Company, L.P. from pymisp import ExpandedPyMISP, MISPEvent, MISPAttribute, MISPObject from requests.packages.urllib3.exceptions import InsecureRequestWarning import requests, logging import matplotlib.pyplot as plt requests.packages.urllib3.disable_warnings(InsecureRequestWarning) log...
python
MIT
54e4f79cfe428c97f6e959112bf8dea9ce4922d6
2026-01-05T07:09:22.940535Z
false
hpthreatresearch/subcrawl
https://github.com/hpthreatresearch/subcrawl/blob/54e4f79cfe428c97f6e959112bf8dea9ce4922d6/analysis/scripting_technology_analysis.py
analysis/scripting_technology_analysis.py
# © Copyright 2021 HP Development Company, L.P. from pymisp import ExpandedPyMISP, MISPEvent, MISPAttribute, MISPObject from requests.packages.urllib3.exceptions import InsecureRequestWarning import requests, logging import matplotlib.pyplot as plt requests.packages.urllib3.disable_warnings(InsecureRequestWarning) log...
python
MIT
54e4f79cfe428c97f6e959112bf8dea9ce4922d6
2026-01-05T07:09:22.940535Z
false
fox-it/bloodhound-import
https://github.com/fox-it/bloodhound-import/blob/6cc3d15c3e86725a501f40dcc9fada8412e63e9e/setup.py
setup.py
from setuptools import setup setup( name='bloodhound_import', version='0.0.9', description='BloodHound import from python', license='MIT', classifiers=[ 'Intended Audience :: Information Technology', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :...
python
MIT
6cc3d15c3e86725a501f40dcc9fada8412e63e9e
2026-01-05T07:09:26.163438Z
false
fox-it/bloodhound-import
https://github.com/fox-it/bloodhound-import/blob/6cc3d15c3e86725a501f40dcc9fada8412e63e9e/bloodhound_import/importer.py
bloodhound_import/importer.py
""" Bloodhound importer in python. Queries are borrowed from the BloodhoundAD project. """ from dataclasses import dataclass from tempfile import NamedTemporaryFile from zipfile import ZipFile from os.path import basename import codecs import ijson import logging import neo4j @dataclass class Query: quer...
python
MIT
6cc3d15c3e86725a501f40dcc9fada8412e63e9e
2026-01-05T07:09:26.163438Z
false
fox-it/bloodhound-import
https://github.com/fox-it/bloodhound-import/blob/6cc3d15c3e86725a501f40dcc9fada8412e63e9e/bloodhound_import/__main__.py
bloodhound_import/__main__.py
import asyncio from bloodhound_import import main asyncio.run(main())
python
MIT
6cc3d15c3e86725a501f40dcc9fada8412e63e9e
2026-01-05T07:09:26.163438Z
false
fox-it/bloodhound-import
https://github.com/fox-it/bloodhound-import/blob/6cc3d15c3e86725a501f40dcc9fada8412e63e9e/bloodhound_import/database.py
bloodhound_import/database.py
""" Code borrowed from https://github.com/fox-it/aclpwn.py/blob/master/aclpwn/database.py """ from neo4j import AsyncGraphDatabase, AsyncDriver import platform import json import os def init_driver(ip, port, scheme, user, password) -> AsyncDriver: uri = "{}://{}:{}".format(scheme, ip, port) driver = AsyncGrap...
python
MIT
6cc3d15c3e86725a501f40dcc9fada8412e63e9e
2026-01-05T07:09:26.163438Z
false
fox-it/bloodhound-import
https://github.com/fox-it/bloodhound-import/blob/6cc3d15c3e86725a501f40dcc9fada8412e63e9e/bloodhound_import/__init__.py
bloodhound_import/__init__.py
import argparse import asyncio import logging from bloodhound_import import database from bloodhound_import.importer import parse_file, add_constraints from neo4j.exceptions import ClientError async def main(): """ Main function """ argparser = argparse.ArgumentParser("bloodhound-import.py") a...
python
MIT
6cc3d15c3e86725a501f40dcc9fada8412e63e9e
2026-01-05T07:09:26.163438Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/KM_parser.py
LAL-Parser/src_joint/KM_parser.py
import functools import numpy as np import sys import torch from torch.autograd import Variable import torch.nn as nn import torch.nn.init as init import transformers use_cuda = torch.cuda.is_available() if use_cuda: torch_t = torch.cuda def from_numpy(ndarray): if float(sys.version[:3]) <= 3.6: ...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
true
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/dep_eval.py
LAL-Parser/src_joint/dep_eval.py
__author__ = 'max' import re import numpy as np def is_uni_punctuation(word): match = re.match("^[^\w\s]+$]", word, flags=re.UNICODE) return match is not None def is_punctuation(word, pos, punct_set=None): if punct_set is None: return is_uni_punctuation(word) else: return pos in punc...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/makehp.py
LAL-Parser/src_joint/makehp.py
class HParams(): _skip_keys = ['populate_arguments', 'set_from_args', 'print', 'to_dict'] def __init__(self, **kwargs): for k, v in kwargs.items(): setattr(self, k, v) def __getitem__(self, item): return getattr(self, item) def __setitem__(self, item, value): if not...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/trees.py
LAL-Parser/src_joint/trees.py
import collections.abc import gzip import numpy as np Sub_Head = "<H>" No_Head = "<N>" Htype = 1 Ntype = 0 class TreebankNode(object): pass class InternalTreebankNode(TreebankNode): def __init__(self, label, children): assert isinstance(label, str) self.label = label assert isinstance(c...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/utils_io.py
LAL-Parser/src_joint/utils_io.py
__author__ = 'max' import re MAX_CHAR_LENGTH = 45 NUM_CHAR_PAD = 2 # Regular expressions used to normalize digits. DIGIT_RE = re.compile(br"\d")
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/transliterate.py
LAL-Parser/src_joint/transliterate.py
BUCKWALTER_MAP = { '\'': '\u0621', '|': '\u0622', '>': '\u0623', 'O': '\u0623', '&': '\u0624', 'W': '\u0624', '<': '\u0625', 'I': '\u0625', '}': '\u0626', 'A': '\u0627', 'b': '\u0628', 'p': '\u0629', 't': '\u062A', 'v': '\u062B', 'j': '\u062C', 'H': '\u062...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/absa_parser.py
LAL-Parser/src_joint/absa_parser.py
import uuid import torch import numpy as np import KM_parser tokens = KM_parser import nltk # from nltk import word_tokenize, sent_tokenize uid = uuid.uuid4().hex[:6] REVERSE_TOKEN_MAPPING = dict([(value, key) for key, value in tokens.BERT_TOKEN_MAPPING.items()]) def torch_load(load_path): if KM_parser.use_cuda:...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/main.py
LAL-Parser/src_joint/main.py
import argparse import itertools import os.path # import os import time import uuid import torch import torch.optim.lr_scheduler import numpy as np import math import evaluate import trees import vocabulary import makehp import KM_parser from dep_reader import CoNLLXReader import dep_eval import utils import json tok...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
true
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/utils.py
LAL-Parser/src_joint/utils.py
__author__ = 'max' import pickle import numpy as np import gzip import utils_io def load_embedding_dict(embedding, embedding_path, normalize_digits= False): """ load word embeddings from file :param embedding: :param embedding_path: :return: embedding dict, embedding dimention, caseless """ ...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/dep_reader.py
LAL-Parser/src_joint/dep_reader.py
__author__ = 'max' import KM_parser tokens = KM_parser class Sentence(object): def __init__(self, words, postags): self.words = words self.postags = postags def length(self): return len(self.words) class DependencyInstance(object): def __init__(self, sentence, postags, heads, ty...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/vocabulary.py
LAL-Parser/src_joint/vocabulary.py
import collections class Vocabulary(object): def __init__(self): self.frozen = False self.values = [] self.indices = {} self.counts = collections.defaultdict(int) @property def size(self): return len(self.values) def value(self, index): assert 0 <= inde...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/evaluate.py
LAL-Parser/src_joint/evaluate.py
import math import os.path import re import subprocess import tempfile import trees class FScore(object): def __init__(self, recall, precision, fscore): self.recall = recall self.precision = precision self.fscore = fscore def __str__(self): return "(Recall={:.2f}, Precision={:...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/test.py
LAL-Parser/src_joint/test.py
import numpy as np import pyximport pyximport.install(setup_args={"include_dirs": np.get_include()}) #import src_dep_const_test.chart_helper as chart_helper import dcchart_helper import torch loss = torch.FloatTensor(1).fill_(0.) print(loss) print(loss.data) loss_value = float(loss.data.cpu().numpy())
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/pytorch_transformers/modeling_utils.py
LAL-Parser/src_joint/pytorch_transformers/modeling_utils.py
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a cop...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
true
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/pytorch_transformers/tokenization_bert.py
LAL-Parser/src_joint/pytorch_transformers/tokenization_bert.py
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICEN...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/pytorch_transformers/file_utils.py
LAL-Parser/src_joint/pytorch_transformers/file_utils.py
""" Utilities for working with the local dataset cache. This file is adapted from the AllenNLP library at https://github.com/allenai/allennlp Copyright by the AllenNLP authors. """ from __future__ import (absolute_import, division, print_function, unicode_literals) import sys import json import logging import os impor...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/pytorch_transformers/convert_roberta_checkpoint_to_pytorch.py
LAL-Parser/src_joint/pytorch_transformers/convert_roberta_checkpoint_to_pytorch.py
# coding=utf-8 # Copyright 2018 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/pytorch_transformers/modeling_bert.py
LAL-Parser/src_joint/pytorch_transformers/modeling_bert.py
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a cop...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
true
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/pytorch_transformers/tokenization_roberta.py
LAL-Parser/src_joint/pytorch_transformers/tokenization_roberta.py
# coding=utf-8 # Copyright 2018 The Open AI Team Authors and The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # ...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/pytorch_transformers/modeling_roberta.py
LAL-Parser/src_joint/pytorch_transformers/modeling_roberta.py
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a cop...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/pytorch_transformers/convert_gpt2_checkpoint_to_pytorch.py
LAL-Parser/src_joint/pytorch_transformers/convert_gpt2_checkpoint_to_pytorch.py
# coding=utf-8 # Copyright 2018 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/pytorch_transformers/tokenization_auto.py
LAL-Parser/src_joint/pytorch_transformers/tokenization_auto.py
# coding=utf-8 # Copyright 2018 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/pytorch_transformers/modeling_xlm.py
LAL-Parser/src_joint/pytorch_transformers/modeling_xlm.py
# coding=utf-8 # Copyright 2019-present, Facebook, Inc and the HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Un...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
true
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/pytorch_transformers/convert_xlm_checkpoint_to_pytorch.py
LAL-Parser/src_joint/pytorch_transformers/convert_xlm_checkpoint_to_pytorch.py
# coding=utf-8 # Copyright 2018 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/pytorch_transformers/optimization.py
LAL-Parser/src_joint/pytorch_transformers/optimization.py
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICEN...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/pytorch_transformers/__main__.py
LAL-Parser/src_joint/pytorch_transformers/__main__.py
# coding: utf8 def main(): import sys if (len(sys.argv) < 4 or len(sys.argv) > 6) or sys.argv[1] not in ["bert", "gpt", "transfo_xl", "gpt2", "xlnet", "xlm"]: print( "Should be used as one of: \n" ">> pytorch_transformers bert TF_CHECKPOINT TF_CONFIG PYTORCH_DUMP_OUTPUT, \n" ">> ...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/pytorch_transformers/modeling_auto.py
LAL-Parser/src_joint/pytorch_transformers/modeling_auto.py
# coding=utf-8 # Copyright 2018 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/pytorch_transformers/tokenization_transfo_xl.py
LAL-Parser/src_joint/pytorch_transformers/tokenization_transfo_xl.py
# coding=utf-8 # Copyright 2018 Google AI, Google Brain and Carnegie Mellon University Authors and the HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the Lice...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/pytorch_transformers/convert_transfo_xl_checkpoint_to_pytorch.py
LAL-Parser/src_joint/pytorch_transformers/convert_transfo_xl_checkpoint_to_pytorch.py
# coding=utf-8 # Copyright 2018 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/pytorch_transformers/convert_pytorch_checkpoint_to_tf.py
LAL-Parser/src_joint/pytorch_transformers/convert_pytorch_checkpoint_to_tf.py
# coding=utf-8 # Copyright 2018 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/pytorch_transformers/tokenization_utils.py
LAL-Parser/src_joint/pytorch_transformers/tokenization_utils.py
# coding=utf-8 # Copyright 2018 The Open AI Team Authors and The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # ...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/pytorch_transformers/modeling_xlnet.py
LAL-Parser/src_joint/pytorch_transformers/modeling_xlnet.py
# coding=utf-8 # Copyright 2018 Google AI, Google Brain and Carnegie Mellon University Authors and the HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the Lice...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
true
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/pytorch_transformers/__init__.py
LAL-Parser/src_joint/pytorch_transformers/__init__.py
__version__ = "1.1.0" from .tokenization_auto import AutoTokenizer from .tokenization_bert import BertTokenizer, BasicTokenizer, WordpieceTokenizer from .tokenization_openai import OpenAIGPTTokenizer from .tokenization_transfo_xl import (TransfoXLTokenizer, TransfoXLCorpus) from .tokenization_gpt2 import GPT2Tokenizer ...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/pytorch_transformers/modeling_transfo_xl.py
LAL-Parser/src_joint/pytorch_transformers/modeling_transfo_xl.py
# coding=utf-8 # Copyright 2018 Google AI, Google Brain and Carnegie Mellon University Authors and the HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the Lice...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
true
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/pytorch_transformers/modeling_openai.py
LAL-Parser/src_joint/pytorch_transformers/modeling_openai.py
# coding=utf-8 # Copyright 2018 The OpenAI Team Authors and HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
true
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/pytorch_transformers/convert_openai_checkpoint_to_pytorch.py
LAL-Parser/src_joint/pytorch_transformers/convert_openai_checkpoint_to_pytorch.py
# coding=utf-8 # Copyright 2018 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/pytorch_transformers/tokenization_openai.py
LAL-Parser/src_joint/pytorch_transformers/tokenization_openai.py
# coding=utf-8 # Copyright 2018 The Open AI Team Authors and The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # ...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/pytorch_transformers/tokenization_xlm.py
LAL-Parser/src_joint/pytorch_transformers/tokenization_xlm.py
# coding=utf-8 # Copyright 2019 The Open AI Team Authors and The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # ...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/pytorch_transformers/tokenization_xlnet.py
LAL-Parser/src_joint/pytorch_transformers/tokenization_xlnet.py
# coding=utf-8 # Copyright 2018 Google AI, Google Brain and Carnegie Mellon University Authors and the HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://ww...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/pytorch_transformers/convert_tf_checkpoint_to_pytorch.py
LAL-Parser/src_joint/pytorch_transformers/convert_tf_checkpoint_to_pytorch.py
# coding=utf-8 # Copyright 2018 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/pytorch_transformers/convert_xlnet_checkpoint_to_pytorch.py
LAL-Parser/src_joint/pytorch_transformers/convert_xlnet_checkpoint_to_pytorch.py
# coding=utf-8 # Copyright 2018 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/pytorch_transformers/tokenization_gpt2.py
LAL-Parser/src_joint/pytorch_transformers/tokenization_gpt2.py
# coding=utf-8 # Copyright 2018 The Open AI Team Authors and The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # ...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/pytorch_transformers/modeling_gpt2.py
LAL-Parser/src_joint/pytorch_transformers/modeling_gpt2.py
# coding=utf-8 # Copyright 2018 The OpenAI Team Authors and HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
true
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/pytorch_transformers/modeling_transfo_xl_utilities.py
LAL-Parser/src_joint/pytorch_transformers/modeling_transfo_xl_utilities.py
# coding=utf-8 # Copyright 2018 Google AI, Google Brain and Carnegie Mellon University Authors and the HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the Lice...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/pytorch_transformers/tests/tokenization_xlnet_test.py
LAL-Parser/src_joint/pytorch_transformers/tests/tokenization_xlnet_test.py
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/pytorch_transformers/tests/tokenization_roberta_test.py
LAL-Parser/src_joint/pytorch_transformers/tests/tokenization_roberta_test.py
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/pytorch_transformers/tests/modeling_transfo_xl_test.py
LAL-Parser/src_joint/pytorch_transformers/tests/modeling_transfo_xl_test.py
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/pytorch_transformers/tests/modeling_xlnet_test.py
LAL-Parser/src_joint/pytorch_transformers/tests/modeling_xlnet_test.py
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/pytorch_transformers/tests/modeling_gpt2_test.py
LAL-Parser/src_joint/pytorch_transformers/tests/modeling_gpt2_test.py
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/pytorch_transformers/tests/modeling_bert_test.py
LAL-Parser/src_joint/pytorch_transformers/tests/modeling_bert_test.py
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/pytorch_transformers/tests/tokenization_openai_test.py
LAL-Parser/src_joint/pytorch_transformers/tests/tokenization_openai_test.py
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/pytorch_transformers/tests/tokenization_auto_test.py
LAL-Parser/src_joint/pytorch_transformers/tests/tokenization_auto_test.py
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/pytorch_transformers/tests/modeling_openai_test.py
LAL-Parser/src_joint/pytorch_transformers/tests/modeling_openai_test.py
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/pytorch_transformers/tests/tokenization_transfo_xl_test.py
LAL-Parser/src_joint/pytorch_transformers/tests/tokenization_transfo_xl_test.py
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/pytorch_transformers/tests/tokenization_utils_test.py
LAL-Parser/src_joint/pytorch_transformers/tests/tokenization_utils_test.py
# coding=utf-8 # Copyright 2018 HuggingFace Inc.. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/pytorch_transformers/tests/conftest.py
LAL-Parser/src_joint/pytorch_transformers/tests/conftest.py
# content of conftest.py import pytest def pytest_addoption(parser): parser.addoption( "--runslow", action="store_true", default=False, help="run slow tests" ) def pytest_collection_modifyitems(config, items): if config.getoption("--runslow"): # --runslow given in cli: do not skip slow ...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/pytorch_transformers/tests/tokenization_tests_commons.py
LAL-Parser/src_joint/pytorch_transformers/tests/tokenization_tests_commons.py
# coding=utf-8 # Copyright 2019 HuggingFace Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/pytorch_transformers/tests/tokenization_gpt2_test.py
LAL-Parser/src_joint/pytorch_transformers/tests/tokenization_gpt2_test.py
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/pytorch_transformers/tests/__init__.py
LAL-Parser/src_joint/pytorch_transformers/tests/__init__.py
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/pytorch_transformers/tests/modeling_common_test.py
LAL-Parser/src_joint/pytorch_transformers/tests/modeling_common_test.py
# coding=utf-8 # Copyright 2019 HuggingFace Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/pytorch_transformers/tests/modeling_xlm_test.py
LAL-Parser/src_joint/pytorch_transformers/tests/modeling_xlm_test.py
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/pytorch_transformers/tests/optimization_test.py
LAL-Parser/src_joint/pytorch_transformers/tests/optimization_test.py
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false
CCChenhao997/DualGCN-ABSA
https://github.com/CCChenhao997/DualGCN-ABSA/blob/e8975264b0802f1fca4ebbc96f30a03ec2717311/LAL-Parser/src_joint/pytorch_transformers/tests/modeling_roberta_test.py
LAL-Parser/src_joint/pytorch_transformers/tests/modeling_roberta_test.py
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
python
MIT
e8975264b0802f1fca4ebbc96f30a03ec2717311
2026-01-05T07:09:25.748166Z
false