Skip to content
Snippets Groups Projects
Commit ca485024 authored by Simonas's avatar Simonas
Browse files

nltk download to tests

parent a863f872
No related branches found
Tags v0.1.0.dev1
No related merge requests found
......@@ -36,6 +36,9 @@ jobs:
- name: Install dependencies
run: |
poetry install
- name: Download nltk data
run: |
python -m nltk.downloader punkt
- name: Pytest
run: |
make test
......
<?xml version="1.0" ?>
<coverage version="7.3.2" timestamp="1702458696684" lines-valid="311" lines-covered="311" line-rate="1" branches-covered="0" branches-valid="0" branch-rate="0" complexity="0">
<coverage version="7.3.2" timestamp="1702458856280" lines-valid="311" lines-covered="311" line-rate="1" branches-covered="0" branches-valid="0" branch-rate="0" complexity="0">
<!-- Generated by coverage.py: https://coverage.readthedocs.io/en/7.3.2 -->
<!-- Based on https://raw.githubusercontent.com/cobertura/web/master/htdocs/xml/coverage-04.dtd -->
<sources>
......
import pytest
import nltk
from semantic_router.encoders import BaseEncoder, CohereEncoder, OpenAIEncoder
from semantic_router.layer import (
......@@ -7,11 +6,8 @@ from semantic_router.layer import (
HybridDecisionLayer,
)
# Replace with the actual module name
from semantic_router.schema import Decision
nltk.download("punkt")
def mock_encoder_call(utterances):
# Define a mapping of utterances to return values
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment