Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WSI task #33

Open
kuan-yu-lin opened this issue May 17, 2023 · 1 comment
Open

WSI task #33

kuan-yu-lin opened this issue May 17, 2023 · 1 comment
Labels
enhancement New feature or request low priority

Comments

@kuan-yu-lin
Copy link
Contributor

Here is the command lines:

python main.py -m \
    evaluation=none \
    task=wsi \
    task/[email protected]=cluster_correlation \
    task/[email protected]=contextual_embedder \
    task/wic/[email protected]_metric=cosine \
    dataset=dwug_de_210 \
    dataset/split=dev \
    dataset/spelling_normalization=english \
    dataset/preprocessing=raw \
    task.model.wic.ckpt=bert-base-german-cased \
    task.model.wic.gpu=1

Here is the error:

Traceback (most recent call last):
  File "/mount/arbeitsdaten20/projekte/cik/users/kuan-yu/LSCDBenchmark/src/wsi/model.py", line 35, in similarity_matrix
    similarity_matrix[i, j] = pairs_to_similarities[(use_1, use_2)]
KeyError: (Use(identifier='2532889X_1946-10-18_01_059.tcf.xml-2-15', grouping='2', context='Mit geheimnisvoller Miene flüsterten die von Michael Bohnen Entsandten jedem zu, daß heute eine Sensation zu erwarten sei.', target='Sensation', indices=(96, 105), pos='NN'), Use(identifier='2532889X_1946-10-18_01_059.tcf.xml-2-15', grouping='2', context='Mit geheimnisvoller Miene flüsterten die von Michael Bohnen Entsandten jedem zu, daß heute eine Sensation zu erwarten sei.', target='Sensation', indices=(96, 105), pos='NN'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/mount/arbeitsdaten20/projekte/cik/users/kuan-yu/LSCDBenchmark/main.py", line 12, in main
    return run(*instantiate(config))
  File "/mount/arbeitsdaten20/projekte/cik/users/kuan-yu/LSCDBenchmark/src/utils/runner.py", line 121, in run
    predictions.update(dict(zip(ids, model.predict(uses))))
  File "/mount/arbeitsdaten20/projekte/cik/users/kuan-yu/LSCDBenchmark/src/wsi/correlation_clustering.py", line 22, in predict
    similarity_matrix = self.similarity_matrix(use_pairs)
  File "/mount/arbeitsdaten20/projekte/cik/users/kuan-yu/LSCDBenchmark/src/wsi/model.py", line 37, in similarity_matrix
    similarity_matrix[i, j] = pairs_to_similarities[(use_2, use_1)]
KeyError: (Use(identifier='2532889X_1946-10-18_01_059.tcf.xml-2-15', grouping='2', context='Mit geheimnisvoller Miene flüsterten die von Michael Bohnen Entsandten jedem zu, daß heute eine Sensation zu erwarten sei.', target='Sensation', indices=(96, 105), pos='NN'), Use(identifier='2532889X_1946-10-18_01_059.tcf.xml-2-15', grouping='2', context='Mit geheimnisvoller Miene flüsterten die von Michael Bohnen Entsandten jedem zu, daß heute eine Sensation zu erwarten sei.', target='Sensation', indices=(96, 105), pos='NN'))
@sachinn12 sachinn12 added enhancement New feature or request low priority labels Jan 8, 2025
@sachinn12
Copy link
Collaborator

WSI is planned for 2026.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request low priority
Projects
None yet
Development

No branches or pull requests

2 participants