added baml test fix and format

This commit is contained in:
vasilije 2025-08-28 08:10:25 +02:00
parent 861ae205d2
commit 8f9e289a83
3 changed files with 5 additions and 1 deletions

View file

@ -189,6 +189,9 @@ jobs:
with:
python-version: ${{ inputs.python-version }}
- name: Install BAML Dependencies
run: uv add "cognee[baml]"
- name: Run Simple Examples
run: uv run python ./examples/python/simple_example.py

View file

@ -1,4 +1,3 @@
from cognee.infrastructure.data.exceptions.exceptions import KeywordExtractionError

View file

@ -20,8 +20,10 @@ proxy_url = "https://test.prometh.ai"
def get_entities(tagged_tokens):
try:
import nltk
nltk.download("maxent_ne_chunker", quiet=True)
from nltk.chunk import ne_chunk
return ne_chunk(tagged_tokens)
except ImportError:
raise ImportError(