google / google/langextract

The code is breaking with French Text

Open
#63 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
38.6k
Forks
2.7k
Avg merge
3d 15h
Merged PRs (30d)
3

Description

I am getting the following error e.g. "LLON-LEROUX, le PRENEUR a fait délivrer un congé pour le 8 janvier 2018, date d'expiration de la pro"

```python
-> 379 parsed_data = self._extract_and_parse_content(input_string)
381 if not isinstance(parsed_data, dict):

File [/opt/miniconda3/envs/noprop/lib/python3.11/site-packages/langextract/resolver.py:338](http://localhost:8888/opt/miniconda3/envs/noprop/lib/python3.11/site-packages/langextract/resolver.py#line=337), in Resolver._extract_and_parse_content(self, input_string)
337 logging.error("Input string does not contain valid markers.")
--> 338 raise ValueError("Input string does not contain valid markers.")
340 content = input_string[left + prefix_length : right].strip()
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.