Trouble opening info after loading the data from model
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 30/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- python
- Área
- machine-learning
Línea de trabajo
Start by reading pycrfsuite/_dumpparser.py, especially parse_LABELS, and trace how Tagger.info() parses the model dump. Reproduce the traceback with the reported tagger.open('crf') and tagger.info() calls; done means identifying why the label line fails to match and confirming the parser handles the affected model output.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Hello,
I think that the library is great but I have a problem to open the info.
I have already trained the CRF and I want to open the model to see the features.
I do:
tagger = pycrfsuite.Tagger()
tagger.open('crf')
info = tagger.info()
And I got the following traceback:
Traceback (most recent call last):
File "/Applications/PyCharm CE.app/helpers/pydev/pydevd.py", line 1733, in <module>
debugger.run(setup['file'], None, None)
File "/Applications/PyCharm CE.app/helpers/pydev/pydevd.py", line 1226, in run
pydev_imports.execfile(file, globals, locals) # execute the script
File "/Users/alexisbenoist/Documents/python/papyrus/learn.py", line 197, in <module>
learn()
File "/Users/alexisbenoist/Documents/python/papyrus/learn.py", line 169, in learn
crf.print_most_common_features()
File "/Users/alexisbenoist/Documents/python/papyrus/extraction/extractor.py", line 219, in print_most_common_features
for (attr, label), weight in self.most_common_features.most_common(nb):
File "/Users/alexisbenoist/Documents/python/papyrus/extraction/extractor.py", line 215, in most_common_features
info = tagger.info()
File "pycrfsuite/_pycrfsuite.pyx", line 704, in pycrfsuite._pycrfsuite.Tagger.info (pycrfsuite/_pycrfsuite.cpp:8649)
File "pycrfsuite/_pycrfsuite.pyx", line 706, in pycrfsuite._pycrfsuite.Tagger.info (pycrfsuite/_pycrfsuite.cpp:8590)
File "/Users/alexisbenoist/Documents/python/papyrus/env/lib/python2.7/site-packages/pycrfsuite/_dumpparser.py", line 61, in feed
getattr(self, 'parse_%s' % self.state)(line)
File "/Users/alexisbenoist/Documents/python/papyrus/env/lib/python2.7/site-packages/pycrfsuite/_dumpparser.py", line 69, in parse_LABELS
self.result.labels[m.group(2)] = m.group(1)
AttributeError: 'NoneType' object has no attribute 'group'
I'm on python 2.7 on a mac.
Do you guys have any on what I'm doing wrong?
Any input is welcome.
Thanks,
Alexis.
- Lenguaje dominante
- Python
- Estrellas
- 774
- Forks
- 223
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de scrapinghub/python-crfsuite
-
no wheels for python 3.14Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 63/100
scrapinghub/python-crfsuite#167 · 2 comentarios · 2 reacciones ·
-
CRFsuite training too slowAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
scrapinghub/python-crfsuite#142 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 25/100
scrapinghub/python-crfsuite#129 · 1 comentario · 2 reacciones ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
scrapinghub/python-crfsuite#119 · 1 comentario · 1 reacción ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
scrapinghub/python-crfsuite#114 ·
Todos los issues de scrapinghub/python-crfsuite
Issues similares
-
[19.0] pos_sale: settling an order with a 0 down payment line crashes (reading 'reward_id') and leaves a wrong amount duePosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 79/100
developmentseed/titiler-covjson#164 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
awslabs/visual-asset-management-system#2164 ·
Los mantenedores suelen responder en 1 día
-
needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
MakazhanAlpamys/Soup#3589 ·
Los mantenedores suelen responder en 1 día
-
channels status reports the wrong Enabled value for Feishu instances and default-enabled WebSocketAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
Los mantenedores suelen responder en 1 día