Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
combo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Syntactic Tools
combo
Commits
26db6a5d
Commit
26db6a5d
authored
Oct 1, 2023
by
Maja Jablonska
Browse files
Options
Downloads
Patches
Plain Diff
Add setup.py
parent
de880019
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!46
Merge COMBO 3.0 into master
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
.idea/combolightning.iml
+3
-1
3 additions, 1 deletion
.idea/combolightning.iml
combo/config/from_parameters.py
+0
-7
0 additions, 7 deletions
combo/config/from_parameters.py
combo/main.py
+1
-0
1 addition, 0 deletions
combo/main.py
setup.py
+38
-0
38 additions, 0 deletions
setup.py
with
42 additions
and
8 deletions
.idea/combolightning.iml
+
3
−
1
View file @
26db6a5d
<?xml version="1.0" encoding="UTF-8"?>
<module
type=
"PYTHON_MODULE"
version=
"4"
>
<component
name=
"NewModuleRootManager"
>
<content
url=
"file://$MODULE_DIR$"
/>
<content
url=
"file://$MODULE_DIR$"
>
<sourceFolder
url=
"file://$MODULE_DIR$/combo"
isTestSource=
"false"
/>
</content>
<orderEntry
type=
"jdk"
jdkName=
"combo"
jdkType=
"Python SDK"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
</component>
...
...
This diff is collapsed.
Click to expand it.
combo/config/from_parameters.py
+
0
−
7
View file @
26db6a5d
...
...
@@ -8,7 +8,6 @@ import torch
from
combo.common.params
import
Params
from
combo.config.exceptions
import
RegistryException
from
combo.config.registry
import
(
Registry
)
from
combo.nn
import
Activation
from
combo.utils
import
ConfigurationError
...
...
@@ -51,12 +50,6 @@ def _resolve(type: Type[object],
return
_resolve
(
type
.
__base__
,
values
,
pass_to_subclasses
,
default_name
)
warnings
.
warn
(
f
'
No classes of type
{
type
}
(values:
{
values
}
) in Registry!
'
)
return
values
elif
type
is
Activation
and
isinstance
(
values
,
str
):
try
:
return
Registry
.
resolve
(
type
,
values
)()
except
RegistryException
:
warnings
.
warn
(
f
'
No Activation of class name
{
values
}
in Registry!
'
)
return
values
else
:
return
values
...
...
This diff is collapsed.
Click to expand it.
combo/main.py
100644 → 100755
+
1
−
0
View file @
26db6a5d
...
...
@@ -82,6 +82,7 @@ flags.DEFINE_enum(name="predictor_name", default="combo-spacy",
def
run
(
_
):
print
(
"
COMBO
"
)
pass
...
...
This diff is collapsed.
Click to expand it.
setup.py
0 → 100644
+
38
−
0
View file @
26db6a5d
import
subprocess
from
setuptools
import
find_packages
,
setup
subprocess
.
call
([
'
pip
'
,
'
install
'
,
'
--no-deps
'
,
'
git+https://gitlab.clarin-pl.eu/syntactic-tools/lambo.git#egg=lambo
'
])
REQUIREMENTS
=
[
"
absl-py~=1.4.0
"
,
"
base58~=2.1.1
"
,
"
cached-path~=1.3.3
"
,
"
conllu~=4.4.1
"
,
"
conllutils~=1.1.4
"
,
"
dill~=0.3.6
"
,
"
importlib-resources~=5.12.0
"
,
"
overrides~=7.3.1
"
,
"
torch~=2.0.0
"
,
"
torchtext~=0.15.1
"
,
"
numpy~=1.24.1
"
,
"
pytorch-lightning~=2.0.01
"
,
"
requests~=2.28.2
"
,
"
tqdm~=4.64.1
"
,
"
urllib3~=1.26.14
"
,
"
filelock~=3.9.0
"
,
"
pytest~=7.2.2
"
,
"
transformers~=4.27.3
"
,
"
spacy~=3.3.1
"
]
setup
(
name
=
"
combo
"
,
version
=
"
2.0.0
"
,
author
=
"
Maja Jablonska
"
,
author_email
=
"
maja.jablonska@ipipan.waw.pl
"
,
install_requirements
=
REQUIREMENTS
,
packages
=
find_packages
(
exclude
=
[
'
tests
'
]),
license
=
"
GPL-3.0
"
,
keywords
=
"
nlp natural-language-processing dependency-parsing
"
,
entrypoints
=
{
'
console_scripts
'
:
[
'
combo = combo.main:main
'
]}
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment